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
I get the following console output when building my app:
[ng] Option "lazyModules" is deprecated: 'SystemJsNgModuleLoader' is deprecated, and this is part of its usage. Use 'import()' syntax instead.
Do you know if there is another way to declare this modules dynamically in the future? As far as I know, with the import() method you have to reference the module by a string file path (so far so good), but also by a lambda expression where you cant use strings. So this would be no solution for me. https://angular.io/guide/lazy-loading-ngmodules
The text was updated successfully, but these errors were encountered:
There is a modern angular way to achieve what the hero-loader is doing. You do not need to add the modules to the lazyModules Array in the angular.json anymore (chunks are created automatically). The entry component must still be in the bootstrap array with this solution:
I get the following console output when building my app:
Do you know if there is another way to declare this modules dynamically in the future? As far as I know, with the import() method you have to reference the module by a string file path (so far so good), but also by a lambda expression where you cant use strings. So this would be no solution for me. https://angular.io/guide/lazy-loading-ngmodules
The text was updated successfully, but these errors were encountered: