Description
Please, provide the details below:
Did you verify this is a real problem by searching the: yes
Tell us about the problem
tns run android --hmr --syncAllFiles
does not sync the node_modules files on any changes. It just seems to ignore them.
Which platform(s) does your issue occur on?
Android (untested on iOS)
Please provide the following version numbers that your issue occurs with:
- CLI: 4.3.0-2018-09-12-12207
- Cross-platform modules: 4.2.0
- Runtime(s): 4.2.0
- Plugin(s): Webpack: "^0.17.0-2018-09-11-02"
Please tell us how to recreate the issue in as much detail as possible.
I have a demo app in my nativescript-localstorage; because the plugin is pointing to ../src npm creates a symlink between ../src and demo/node-modules/nativescript-localstorage/ So any changes done in ../src are the same as what are done in the node-modules. So I type tns run android --hmr --syncAllFiles
and then let it start the app. I can change any demo\ folder stuff; and HRM kicks in a makes the changes (!!! AWESOME WORK GUYS !!!).
However, in my editor if I change the localstorage.js file; to test things.
It sits for a while and then this Log Shows after changing JS in node-modules plugin folder
Executing before-shouldPrepare hook from D:\projects\nativescript\repos\nativescript-localstorage\de
mo\hooks\before-shouldPrepare\nativescript-dev-webpack.js
Preparing project...
Executing before-prepareJSApp hook from D:\projects\nativescript\repos\nativescript-localstorage\dem
o\hooks\before-prepareJSApp\nativescript-dev-webpack.js
Project successfully prepared (Android)
Executing after-prepare hook from D:\projects\nativescript\repos\nativescript-localstorage\demo\hook
s\after-prepare\nativescript-dev-webpack.js
Successfully synced application org.nativescript.demo on device 192.168.122.101:5555.
So it detected something was changed, However it never actually synced any files, nor restarted the app. If I manually restart the app; the changes aren't present. (In prior version of TNS the --syncAllFiles
, it lists the files that it found that changed, so the above log does not show it found any files).
cc: @vtrifonov