Possible issue with ivy compiler?
See original GitHub issueHello,
Just upgraded all my packages and tried to build with ivy, I am getting this error
Compiling ngx-toastr : es2015 as esm2015
ERROR in No suitable injection token for parameter 'el' of class 'ToastContainerDirective'.
no type or decorator
I load ToastrModule.forRoot(),
in my app.module, then I have some lazy loaded children modules that leverage ToastrService.
Was not including ToastrModule
in the includes for those lazy modules, not sure I have to, but just to see I added them and still same error.
"ngx-toastr": "11.2.0",
"@angular/core": "8.2.13",
build command: node --max_old_space_size=8000 ./node_modules/.bin/ng build --prod --source-map --build-optimizer=true --statsJson=true
of course "enableIvy": true
in tsconfig
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Angular Ivy
Ivy is the code name for Angular's next-generation compilation and rendering pipeline. With the version 9 release of Angular, the new compiler and...
Read more >Problems with enabling Ivy in Angular 10 #39282 - GitHub
Hello everybody We have a problem with our angular app. ... indicates that the Ivy compiler is failing to interpret the NgModule declaration...
Read more >Angular 12 Project is attempting to disable the Ivy compiler
The Ivy compiler will be used to build this project. Project is attempting to disable ivy but it is using it for my...
Read more >All About Angular Engine Ivy in 5 mins
Ivy is the pipeline of rendering and compilation of the next-generation. It is very advanced and offers advanced features that were not ...
Read more >Understanding Angular Ivy Library Compilation | lacolaco/tech
In this post, I will explain how to compile Angular libraries with Ivy, which is now possible in Angular v11.1, and its details....
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
@scttcper I’m having exactly this issue now with Ivy. Disabling it would not be an option right now since it goes against the stream.
yes it is. if you want to keep ivy, upgrade to 9 rc