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.

Possible issue with ivy compiler?

See original GitHub issue

Hello,

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:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Coooicommented, Nov 5, 2019

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

0reactions
scttcpercommented, Nov 27, 2019

yes it is. if you want to keep ivy, upgrade to 9 rc

Read more comments on GitHub >

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

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