experimentalDecorators and Cannot find module 'angular2/angular2'.
See original GitHub issueFrom the 5 Min Quickstart guide: When I’d run,
tsc --watch -m commonjs -t es5 --emitDecoratorMetadata app.ts
I’d get this error: error TS6064: Option ‘experimentalDecorators’ must also be specified when option ‘emitDecoratorMetadata’ is specified. So, I added --experimentalDecorators to the parameters list of the above command:
tsc --watch -m commonjs -t es5 --emitDecoratorMetadata --experimentalDecorators app.ts
But now, I get this error in the log: app.ts(1,42): error TS2307: Cannot find module ‘angular2/angular2’.
Though it’s not causing any sort of error to the application from the client end.
Issue Analytics
- State:
- Created 8 years ago
- Comments:24 (2 by maintainers)
Top Results From Across the Web
Cannot find module 'angular2/angular2' - node.js
yups as said by @simon error is in imports. but for further imports i have posted this answer may be this is useful...
Read more >angular/angular - Gitter
Specify '--experimentalDecorators' to remove this warning. [0] app/main.ts(1,28): error TS2307: Cannot find module 'angular2/platform/browser'.
Read more >Build:cannot find module 'angular2/core' Error - Syncfusion
Hi, First time working with MVC/Syncfusion. I just open the standard MVC template and installed Syncfusion according to the instructions but before even ......
Read more >TypeScript compiler "cannot find module 'angular2/..."
Hi, I have a basic angular 2 setup, now the TypeScript compiler keeps saying it can't the modules, although I have imported it...
Read more >typescript - Muhammad Hassan - WordPress.com
As I am using systemJS to load module, so Update the systemjs.config.js file to ... Cannot find name 'many' and namespace '_' issues...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@RajeswarReddy GitHub issues are for bug reports and feature requests. For support questions please use other channels like the ones listed in CONTRIBUTING - Got a Question or Problem?
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.