You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ANYTHING goes wrong in the lazy module when "attaching" the module, I get the same error message:
ERROR Error: Uncaught (in promise): Error created and attaching module async.
For example I forgot to provide Service1 that is injected in a component and therefore get the "injector cant resolve ..." error. This error is also reflected as: ERROR Error: Uncaught (in promise): Error created and attaching module async. which makes it hard to debug.
The obvious workaround is to develop the module EGERLY and then lazyload the finished product.
Is there any other solution ?
Workaround im currently using:
comment out bootstrap argument in LAZY_MODULE decorator
otherwise we only get 'ERROR Error: Uncaught (in promise): Error created and attaching module async.' as error message which is not helpful for debugging.
When ANYTHING goes wrong in the lazy module when "attaching" the module, I get the same error message:
For example I forgot to provide
Service1
that is injected in a component and therefore get the "injector cant resolve ..." error. This error is also reflected as:ERROR Error: Uncaught (in promise): Error created and attaching module async.
which makes it hard to debug.The obvious workaround is to develop the module EGERLY and then lazyload the finished product.
Is there any other solution ?
Workaround im currently using:
bootstrap
argument in LAZY_MODULE decoratorapp.component.html
The text was updated successfully, but these errors were encountered: