Getting "__decorate is not defined" when importing Angular 2 Components
See original GitHub issueBecause they are using the “@Component” decorator
● Test suite failed to run
ReferenceError: __decorate is not defined
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Angular2 decorators are not defined - typescript - Stack Overflow
My project builds with webpack but when I host the app from localhost I get an error. Uncaught ReferenceError: __decorate is not defined....
Read more >Introduction to Angular concepts
The @Component() decorator identifies the class immediately below it as a component, and provides the template and related component-specific metadata.
Read more >Feature modules - Angular
In the CLI generated feature module, there are two JavaScript import statements at the top of the file: the first imports NgModule ,...
Read more >Cheat Sheet - Angular
Bootstraps the application, using the root component from the specified NgModule . NgModules, Details. import { NgModule } ...
Read more >Add services - Angular
The @Injectable() decorator accepts a metadata object for the service, the same way the @Component() decorator did for your component classes. Get hero...
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 FreeTop 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
Top GitHub Comments
no problem 😃
This doesn’t seem to work anymore. Need to do this instead: https://github.com/kulshekhar/ts-jest#tsconfig