question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

experimentalDecorators and Cannot find module 'angular2/angular2'.

See original GitHub issue

From 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:closed
  • Created 8 years ago
  • Comments:24 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
zoechicommented, May 2, 2016

@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?

0reactions
angular-automatic-lock-bot[bot]commented, Sep 13, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found