-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Issue Description
Hello, let's see if anyone can shed some light on this. I've been trying various approaches related to my environment for several days and haven't been able to solve it. After updating NS to version 9, I'm having problems related to hot reload using --no-hmr.
After many tests and investigations, I discovered that two files are deployed within the Android device: bundle.js and bundle.mjs. As far as I could identify, when I run ns run android, the build.js file is used, and this file always receives updates. When I run ns run android --no-hmr, build.mjs is used, but this file is never updated, so even after changing the app and restarting, the change never takes effect. Does this make sense?
Besides migrating to NativeScript 9, I'm also migrating to NativeScript Vue 3, and I'm not sure if this problem is related to NativeScript or Vue. I tried isolating the problem using a small project, but I couldn't get the same behavior. My app is relatively complex and makes use of several components.
root@fedora:/app# ns doctor
✔ Getting environmental information
No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 9.0.2 version and is up to date.tsconfig.json
{
"compilerOptions": {
"strict": true,
"target": "es2020",
"module": "es2020",
"moduleResolution": "node",
"lib": ["es2020", "WebWorker"],
"sourceMap": true,
"noEmitHelpers": true,
"importHelpers": true,
"baseUrl": ".",
"paths": {
"~/*": ["app/*"],
"@/*": ["app/*"]
},
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipLibCheck": true
},
"vueCompilerOptions": {
"target": 3,
"lib": "nativescript-vue"
},
"include": ["app", "types"],
"exclude": ["node_modules", "platforms"]
}
package.json
{
"name": "mobloja",
"main": "./app/app.js",
"displayName": "Blank",
"version": "1.0.0",
"description": "NativeScript Application",
"dependencies": {
"@nativescript-community/perms": "3.0.4",
"@nativescript-community/ui-collectionview": "6.0.14",
"@nativescript-community/ui-drawer": "^0.1.31",
"@nativescript-community/ui-pulltorefresh": "^2.5.3",
"@nativescript/core": "~9.0.8",
"@nativescript/geolocation": "9.0.0",
"@nativescript/iqkeyboardmanager": "2.1.1",
"@nativescript/theme": "~3.1.0",
"moment-mini": "^2.29.4",
"nativescript-alarm": "https://github.com/mobilemindtech/nativescript-alarm.git",
"nativescript-apple-sign-in": "^2.0.0",
"nativescript-appversion": "1.4.4",
"nativescript-background-task": "https://github.com/mobilemindtech/nativescript-background-task.git",
"nativescript-barcodescanner": "https://github.com/mobilemindtech/nativescript-barcodescanner/releases/download/4.1.12/nativescript-barcodescanner-4.1.12.tgz",
"nativescript-clipboard": "^2.1.1",
"nativescript-db-orm": "https://github.com/mobilemindtech/nativescript-db-orm.git",
"nativescript-device-uuid": "https://github.com/mobilemindtech/nativescript-device-uuid.git",
"nativescript-extra-call": "https://github.com/mobilemindtech/nativescript-extra-call.git",
"nativescript-fonticon": "https://github.com/mobilemindtech/nativescript-fonticon.git",
"nativescript-google": "https://github.com/mobilemindtech/nativescript-google.git",
"nativescript-masked-text-field": "https://github.com/mobilemindtech/nativescript-masked-text-field/releases/download/1.0.4/nativescript-masked-text-field-1.0.4.tgz",
"nativescript-message-bar-manager": "https://github.com/mobilemindtech/nativescript-message-bar-manager.git",
"nativescript-mobilemind": "https://github.com/mobilemindtech/nativescript-mobilemind.git",
"nativescript-network-checker": "https://github.com/mobilemindtech/nativescript-network-checker.git",
"nativescript-push-notifications": "https://github.com/mobilemindtech/push-plugin.git",
"nativescript-sqlite": "^2.8.6",
"nativescript-ui-listview": "15.2.3",
"nativescript-view-util": "https://github.com/mobilemindtech/nativescript-view-util.git",
"nativescript-vue": "3.0.2",
"nativescript-websockets": "https://github.com/mobilemindtech/nativescript-websockets/releases/download/2.0.5/nativescript-websockets-2.0.5.tgz",
"picocolors": "^1.1.1",
"rxjs": "~7.8.2",
"vuex": "^4.1.0"
},
"devDependencies": {
"@nativescript/android": "9.0.1",
"@nativescript/types": "~9.0.0",
"@nativescript/webpack": "~5.0.25",
"typescript": "^5.8.3",
"vue-loader": "^17.1.1"
}
}OS: Linux 6.18 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
CPU: (8) x64 AMD Ryzen 7 3700U with Radeon Vega Mobile Gfx
Shell: /bin/bash
node: 20.19.6
npm: 10.8.2
nativescript: 9.0.2
# android
java: 17.0.17
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found
# ios
xcode: Not Found
cocoapods: Not Found
python: Not Found
python3: 3.11.2
ruby: Not Found
platforms: Not FoundDependencies
"dependencies": {
"@nativescript-community/perms": "3.0.4",
"@nativescript-community/ui-collectionview": "6.0.14",
"@nativescript-community/ui-drawer": "^0.1.31",
"@nativescript-community/ui-pulltorefresh": "^2.5.3",
"@nativescript/core": "~9.0.8",
"@nativescript/geolocation": "9.0.0",
"@nativescript/iqkeyboardmanager": "2.1.1",
"@nativescript/theme": "~3.1.0",
"moment-mini": "^2.29.4",
"nativescript-alarm": "https://github.com/mobilemindtech/nativescript-alarm.git",
"nativescript-apple-sign-in": "^2.0.0",
"nativescript-appversion": "1.4.4",
"nativescript-background-task": "https://github.com/mobilemindtech/nativescript-background-task.git",
"nativescript-barcodescanner": "https://github.com/mobilemindtech/nativescript-barcodescanner/releases/download/4.1.12/nativescript-barcodescanner-4.1.12.tgz",
"nativescript-clipboard": "^2.1.1",
"nativescript-db-orm": "https://github.com/mobilemindtech/nativescript-db-orm.git",
"nativescript-device-uuid": "https://github.com/mobilemindtech/nativescript-device-uuid.git",
"nativescript-extra-call": "https://github.com/mobilemindtech/nativescript-extra-call.git",
"nativescript-fonticon": "https://github.com/mobilemindtech/nativescript-fonticon.git",
"nativescript-google": "https://github.com/mobilemindtech/nativescript-google.git",
"nativescript-masked-text-field": "https://github.com/mobilemindtech/nativescript-masked-text-field/releases/download/1.0.4/nativescript-masked-text-field-1.0.4.tgz",
"nativescript-message-bar-manager": "https://github.com/mobilemindtech/nativescript-message-bar-manager.git",
"nativescript-mobilemind": "https://github.com/mobilemindtech/nativescript-mobilemind.git",
"nativescript-network-checker": "https://github.com/mobilemindtech/nativescript-network-checker.git",
"nativescript-push-notifications": "https://github.com/mobilemindtech/push-plugin.git",
"nativescript-sqlite": "^2.8.6",
"nativescript-ui-listview": "15.2.3",
"nativescript-view-util": "https://github.com/mobilemindtech/nativescript-view-util.git",
"nativescript-vue": "3.0.2",
"nativescript-websockets": "https://github.com/mobilemindtech/nativescript-websockets/releases/download/2.0.5/nativescript-websockets-2.0.5.tgz",
"picocolors": "^1.1.1",
"rxjs": "~7.8.2",
"vuex": "^4.1.0"
},
"devDependencies": {
"@nativescript/android": "9.0.1",
"@nativescript/types": "~9.0.0",
"@nativescript/webpack": "~5.0.25",
"typescript": "^5.8.3",
"vue-loader": "^17.1.1"
}Reproduction
No response
Relevant log output (if applicable)
Environment
No response
Please accept these terms
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project's Code of Conduct