Environment
- CLI: 6.5.0
- Cross-platform modules: 6.5.1
- Android Runtime: 6.5.0
- iOS Runtime: 6.5.0
Describe the bug
When saving any file with vue class component style + typescript, It simply does not update. Give me the following error:
File change detected. Starting incremental webpack compilation...
Successfully transferred bundle.609c813aedb0d81fb57e.hot-update.js on device emulator-5554.
Successfully transferred 609c813aedb0d81fb57e.hot-update.json on device emulator-5554.
JS: HMR: Checking for updates to the bundle with hmr hash 609c813aedb0d81fb57e.
JS: HMR: Ignored an update to unaccepted module:
JS: HMR: ➭ ./routes.ts
JS: HMR: ➭ ./main.ts
JS: HMR: Cannot apply update with hmr hash 609c813aedb0d81fb57e.
JS: HMR: Aborted because ./routes.ts is not accepted
JS: Update propagation: ./routes.ts -> ./main.ts
Refreshing application on device emulator-5554...
Successfully transferred bundle.js on device emulator-5554.
Successfully transferred runtime.js on device emulator-5554.
Successfully transferred vendor.js on device emulator-5554.
JS: HMR: Cannot apply update. A previous update aborted. Application needs to be restarted in order to apply the changes.
Restarting application on device emulator-5554...
This causes the entire application to restart, with no HRM update.
To Reproduce
Base on nativescript blogs NativeScript-Vue with Class Components More samples on the link.
- npm install -g @vue/cli @vue/cli-init
- vue init nativescript-vue/vue-cli-template hmrbug. (Select Typescript)
- npm i vue-class-component
- npm i vue-property-decorator
Next: Create the following template:
<Label text="Hello" textWrap="true" />
Then add a hello to the text
<Label text="Hello Hello" textWrap="true" />
Check the error.
Expected behavior
Use the famous HMR without restarting the entire App. I consider this a severe problem or bug, since it slows down your productivity as developer while waiting to the app to restart.
--no-hmr
). Of course it's less productive but better than getting struck in the middle of HMR reload every here and then. – Manoj