-
-
Notifications
You must be signed in to change notification settings - Fork 24
"Error: Zone already loaded" after running "tns run android --bundle" on empty project #285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I downgraded angular cli to version 9.1.10 instead of 10.0.1 and the error is different: ` webpack is watching the files… Hash: 0972c032930c92cab0c9 Error executing Metadata Generator: java.nio.IntBuffer.clear()Ljava/nio/IntBuffer; Unable to apply changes on device: emulator-5554. Error is: Command gradlew.bat failed with exit code 1. |
Having the same problem with both Here were my exact steps to get to this point:
Install fails with the following:
As a workaround, follow this answer:
As a workaround, follow this answer: Locate the following code block in webpack.config.js:
and update it to:
After re-running
Now, I'm not sure if those workarounds change the expected state of the project and it might not be related to the zone issues, but I thought I'd include it just in case. |
same isssue here, i try to comment block New CopyWebpackPlugin
Image for this plz help |
Fixed in latest release, please see here for instructions of use. |
Environment
{
"name": "Test",
"license": "SEE LICENSE IN ",
"version": "0.0.0",
"nativescript": {
"id": "org.nativescript.test",
"tns-android": {
"version": "6.5.1"
}
},
"dependencies": {
"@angular/animations": "~9.1.0",
"@angular/common": "~9.1.0",
"@angular/compiler": "~9.1.0",
"@angular/core": "~9.1.0",
"@angular/forms": "~9.1.0",
"@angular/platform-browser": "~9.1.0",
"@angular/platform-browser-dynamic": "~9.1.0",
"@angular/router": "~9.1.0",
"@nativescript/angular": "~9.0.0",
"@nativescript/core": "~6.5.5",
"@nativescript/schematics": "git+https://github.com/NativeScript/nativescript-schematics.git",
"@nativescript/theme": "~2.2.1",
"reflect-metadata": "~0.1.12",
"rxjs": "~6.5.5",
"tslib": "1.10.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular/cli": "~9.1.0",
"@angular/compiler-cli": "~9.1.0",
"@angular-devkit/core": "~9.1.0",
"nativescript-dev-webpack": "~1.5.0",
"@ngtools/webpack": "~9.1.0",
"typescript": "~3.8.3",
"node-sass": "^4.7.1"
}
}
Describe the bug
After run
tns run android --bundle
Successfully synced application org.nativescript.test on device emulator-5554. System.err: An uncaught Exception occurred on "main" thread. System.err: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function System.err: Error: Zone already loaded. System.err: File: (file: node_modules\@nativescript\angular\__ivy_ngcc__\zone-js\dist\zone-nativescript.js:32:0) System.err: System.err: StackTrace: System.err: ZoneAwareError(file: node_modules\@nativescript\angular\zone-js\dist\zone-nativescript.js:1298:0) System.err: at (file: node_modules\@nativescript\angular\__ivy_ngcc__\zone-js\dist\zone-nativescript.js:32:0) System.err: at (file: node_modules\@nativescript\angular\__ivy_ngcc__\zone-js\dist\zone-nativescript.js:645:1) System.err: at (file: node_modules\@nativescript\angular\__ivy_ngcc__\zone-js\dist\zone-nativescript.js:9:61) System.err: at (file: node_modules\@nativescript\angular\__ivy_ngcc__\zone-js\dist\zone-nativescript.js:12:1) System.err: at ../node_modules/@nativescript/angular/__ivy_ngcc__/zone-js/dist/zone-nativescript.js(file:///data/data/org.nativescript.test/files/app/vendor.js:103073:30) System.err: at __webpack_require__(file: app\webpack\bootstrap:750:0) System.err: at fn(file: app\webpack\bootstrap:120:0) System.err: at (file: node_modules\@nativescript\angular\__ivy_ngcc__\platform-common.js:6:0) System.err: at ../node_modules/@nativescript/angular/__ivy_ngcc__/platform-common.js(file:///data/data/org.nativescript.test/files/app/vendor.js:97913:30) System.err: at __webpack_require__(file: app\webpack\bootstrap:750:0) System.err: at fn(file: app\webpack\bootstrap:120:0) System.err: at ../node_modules/@nativescript/angular/__ivy_ngcc__/index.js(file: node_modules\@nativescript\angular\__ivy_ngcc__\index.js:6:9) System.err: at __webpack_require__(file: app\webpack\bootstrap:750:0) System.err: at fn(file: app\webpack\bootstrap:120:0) System.err: at ./app.module.ts(file: app\app.module.ts:1:0) System.err: at __webpack_require__(file: app\webpack\bootstrap:750:0) System.err: at fn(file: app\webpack\bootstrap:120:0) System.err: at (file:///data/data/org.nativescript.test/files/app/bundle.js:195:69) System.err: at ./main.ts(file:///data/data/org.nativescript.test/files/app/bundle.js:254:30) System.err: at __webpack_require__(file: app\webpack\bootstrap:750:0) System.err: at checkDeferredModules(file: app\webpack\bootstrap:43:0) System.err: at webpackJsonpCallback(file: app\webpack\bootstrap:30:0) System.err: at (file:///data/data/org.nativescript.test/files/app/bundle.js:2:57) System.err: at require(:1:266)
To Reproduce
Expected behavior
Project running normally
The text was updated successfully, but these errors were encountered: