I get the following error:
Error: ToastrModule is already loaded. It should only be imported in your application's main module.
I did a ctrl-f on my project and confirmed its only getting loaded in my shared module. When I hit the lazy module the error pops up.
Is this happening because I'm loading it in a shared module instead of app.module.ts? Should that matter? I bundled it up with my shared module so I wouldn't have to pollute something like app.module.ts
It shouldn't be imported in a shared module. It needs to be imported into a module that only gets imported once. Something like a CoreModule or simple the AppModule
Same as #415
Closing as this is a duplicate.
Most helpful comment
It shouldn't be imported in a shared module. It needs to be imported into a module that only gets imported once. Something like a CoreModule or simple the AppModule