nativescript-contacts icon indicating copy to clipboard operation
nativescript-contacts copied to clipboard

Always triggering HMR / Webpack

Open andresilva-cc opened this issue 4 years ago • 3 comments

For some reason, whenever I make a change to my code, some of nativescript-contacts files get triggered by Webpack, which in turn makes HMR do a full restart of the app, instead of just updating the app without a full restart. Check log:

JS: HMR: The following modules were updated:
JS: HMR:          ↻ ../node_modules/nativescript-worker-loader/index.js!../node_modules/nativescript-contacts/get-all-contacts-worker.js
JS: HMR:          ↻ ../node_modules/nativescript-worker-loader/index.js!../node_modules/nativescript-contacts/get-contacts-by-name-worker.js

andresilva-cc avatar Oct 09 '19 01:10 andresilva-cc

Any news? I have a similar problem, if I have in code: const newContact = new contacts.Contact (); And I make any code change, the app is restarting but change not display in the app. To see the change in the app in the emulator, I have to run the app again.

pdomkar avatar Oct 30 '19 07:10 pdomkar

Are there any solutions to this problem?

PetroSuch avatar Dec 13 '19 12:12 PetroSuch

Having the same issue, the only way to avoid that is to comment the import in your files when you don't use it while developing and re-add it when building for production.

gurvancampion avatar May 12 '20 11:05 gurvancampion