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 }}
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Different relative paths for lazy route files #372
Activity
mxth commentedon Jan 11, 2018
@vchimev do you have an estimation for the fix? Our app is going to production soon, and we need it to plan accordingly.
NickIliev commentedon Feb 13, 2018
@mxth as a temporary solution you can manually change the paths before bundling with Webpack (as done here)
SmailHammour commentedon Mar 1, 2018
@NickIliev when can we expect a fix for this?
NickIliev commentedon Mar 2, 2018
@Smiley01987 @mxth the issue can now be resolved by providing an app alias in
tsconfig.jsonand using the alias to create the nested lazily loaded modules.For example (based on https://github.com/mxth/nativescript-nested-lazy)
tsconfig.json (note the alias in paths
"~/*": ["app/*"],)and then in the nested routing table use the alias as follows
items.module.ts
With the above configuration, the application will build and run as expected with and without Webpack.
NickIliev commentedon Mar 2, 2018
The creation of the alias will be added out-of-the-box with nativescript-dev-typescript with this PR