Skip to content

LiveSync is not working in Preview app when Angular's lazy loading is used #4024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rosen-vladimirov opened this issue Oct 12, 2018 · 1 comment
Assignees
Labels
Milestone

Comments

@rosen-vladimirov
Copy link
Contributor

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: rc (5.0.0-2018-10-12-12482)
  • Cross-platform modules: Not applicable
  • Android Runtime: Not applicable
  • iOS Runtime: Not applicable
  • Plugin(s): nativescript-dev-webpack - next, nativescript-angular - next

Describe the bug
In case you have Angular application with Lazy loading and you try:

tns preview --bundle

or

tns preview --hmr

You will not be able to use LiveSync - the changes are not applied.

To Reproduce

git clone https://github.com/NativeScript/nativescript-sdk-examples-ng.git
cd nativescript-sdk-examples-ng
// update all depenencies to next and update your webpack.config.js
tns preview --bundle
// Scan the QR code
// After app is synced, apply a change in any file, it should be synced, but it is not

Expected behavior
LiveSync to Preview app should work

@sis0k0
Copy link
Contributor

sis0k0 commented Oct 18, 2018

Note: The navigation in the app is not working, not just the livesync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants