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
{{ message }}
Repository navigation
App with lazily loaded module fails with tns preview --bundle #6545
√ Component nativescript has 5.0.0 version and is up to date.
√ Component tns-core-modules has 5.0.2 version and is up to date.
√ Component tns-android has 5.0.0 version and is up to date.
√ Component tns-ios has 5.0.0 version and is up to date.
The another option is to create an application from tabs or hello world templates. These templates do not have lazy loading, so they will work automatically with tns preview --bundle command.
Lazy loading also prevents HMR, right?
Is it recommended to avoid lazy loading for now and take advantage of bundling and HMR? What's the best approach for the future?
Thanks a lot @Fatme
changed the title [-]Angular Drawer Template: webpack error: Failed to find module: "~/app/home/home.module", relative to: /app/[/-][+]App with lazily loaded module fails with tns preview --bundle[/+]on Nov 13, 2018
Activity
Fatme commentedon Nov 12, 2018
@isc30,
Currently preview app has a limitation and does not support lazy loading with angular projects.
The error you receive is due to the fact that
homemodule is lazy loaded here https://github.com/NativeScript/template-drawer-navigation-ng/blob/master/src/app/home/home-routing.module.ts#L12. If you want to runpreview --bundlecommand withdrawer navigationtemplate, you need to refactor all places where lazy loading is used.The another option is to create an application from
tabsorhello worldtemplates. These templates do not have lazy loading, so they will work automatically withtns preview --bundlecommand.isc30 commentedon Nov 12, 2018
Lazy loading also prevents HMR, right?
Is it recommended to avoid lazy loading for now and take advantage of bundling and HMR? What's the best approach for the future?
Thanks a lot @Fatme
[-]Angular Drawer Template: webpack error: Failed to find module: "~/app/home/home.module", relative to: /app/[/-][+]App with lazily loaded module fails with tns preview --bundle[/+]NickIliev commentedon Nov 13, 2018
Issue moved to NativeScript/nativescript-cli #4128 via ZenHub
lock commentedon Nov 13, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.