When trying to compile and export a typescript module I get this error. I have read a few articles but none fix my problem, I am using VS2015 Exterprise, Thanks
Visual studio TypeScript error “Cannot compile modules unless the '--module' flag is provided.”
Right click the project and select "properties". Click on the TypeScript page in the project properties and then select your module (I personally recommend commonjs with webpack for frontend/browser or as is for nodejs)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With