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
Post a Comment