-
-
Notifications
You must be signed in to change notification settings - Fork 40
livesync problems: only every other view/style file change triggers - node 8.9.4 and above on Mac at least #641
Comments
Confirming this as a reproducible issue when using Node.js 10.x.x Using the linked application on Windows with the followng versions
The issue is not present with Node.js 8.9.4 Pressing Ctrl+S twice is needed for libvesynt to kick in - simply saving once will output the message below without actually syncing the changes.
|
I can also confirm that Node.js |
Unfortunately same issue is present in |
+1 guys, this is a real time killer, why was this put in the backlog? |
The issue is in the Update: After some additional investigation it appears that the issue is reproducible with the |
I can confirm that removing the env.aot flag works and is blazing fast. Thanks so much for diagnosing this, I'll remove that flag until this is fixed, you guys rock! |
Reported via t.1341763 |
The @ngtools/webpack should be applied to ngfactory and ngstyle files and not only to TS files. fixes #641
* fix(angular): rebuild on ngfactory/ngstyle change The @ngtools/webpack should be applied to ngfactory and ngstyle files and not only to TS files. fixes #641 * refactor: remove obsolete comment
@sis0k0 @SvetoslavTsenov - just a note that I tried And it then reports:
But it never reloads. This was even with making a single change in |
Hey @NathanWalker, could you please try again with the official version of the plugin? It should be 0.16.1. |
@NathanWalker the issue is resolved on my side with |
@NickIliev @SvetoslavTsenov yep same issue with |
Here's the brief stack:
It does reload the app but the changes didn't make it. |
@sis0k0 these are the {N} and angular deps I'm using:
|
Looks like this error is related to this: |
Hi @NathanWalker! I couldn't reproduce the issue with the provided dependencies' versions. Can you share a sample app or nx workspace? |
Thanks @sis0k0 I will when I can find the time, really appreciate you looking into this. We are going to try some workarounds stated in the angular issue above there. |
Ok @sis0k0 the workaround posted literally yesterday on that angular issue worked. Crazy.
So that gets rid of this error specifically:
However we are back to this original issue. The livesync on view and style files only triggers every other one. So to recap, we can now livesync .ts with |
Well correction - changes to only |
Ok this issue is now solved. For anyone that comes across this make sure you're using the latest webpack.config.js that comes down with this plugin. Specifically ensure you have this in your projects config:
|
@NickIliev created an issue repo here which exhibits the following livesync problems when using these node/npm versions:
Repro:
cd nativescript-dev-webpack/issue-630
tns run ios --emulator --bundle --env.aot
items.component.html
and change ActionBar title to something else and then save.And nothing happens. Save again and it will livesync. Save again and it does same output but never reloads, continue/repeat and same cycle occurs.
The text was updated successfully, but these errors were encountered: