TypeScript problems in webstorm using the "import" statement -


when tried using import statement in webstorm typescript enabled error

error:(14, 1) ts1148: cannot compile external modules unless '--module' flag provided.

however if add --module flag typescript command line options under "webstorm preferences -> languages , frameworks -> typescript", compiler cannot start error.

what's best way configure this?

--module option requires module type (either '--module amd' or '--module commonjs')

please see https://www.npmjs.com/package/typescript-compiler more information typescript compiler arguments


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -