-
-
Notifications
You must be signed in to change notification settings - Fork 40
"Zone Already Loaded" error when building with --snapshot param #230
Comments
Hey, @codeback. We'll need some additional information about your project to find the root of the problem here. First of all, can you share the full log of the build (but without using uglify flag). Lifehack if you're using linux/mac (which is probably the case cause you are building with snapshot) -
That will print the log on the console and save it ton a file named log.txt in the cwd, too. Thanks in advance! |
Thank you @sis0k0 for your response, The error is different if I run build-android-bundle or if i run start-android-bundle. With the first one I'm getting the "Zone Already Loaded" error and with the start-android-bundle I'm getting "webpackJsonp is not defined". Please find here the requested files: |
That's pretty odd (the different errors). According to the log, the snapshot generation is successful. Will you be able to email me the project or to write in the community slack? |
@sis0k0, I've just sent you an invitation to the repo so you can check it. Thanks in advance |
Hi @sis0k0, The error "Zone Already Loaded" was due to a plugin (nativescript-master-technology), I've removed it and now it is working. The error "webpackJsonp is not defined" is only shown if I run start-android-bundle in the emulator. When I run it in a device, it is working. It's not a big problem for me since I will run the --snapshot param only when I want build a release version. Thank you very much for your help. |
@sis0k0 I'm running into same issue with snapshot on device.
|
@sis0k0 When I compared the complied Does this give you any idea what could be wrong here? |
Can you open another issue and post your package.json and the full build log there. My suggestion is that the snapshot generation may fail. But, I think it's better to move the discussion to another thread. |
Sorry for pinging you guys, this issue is kind of old and my problem is a bit different, but I just wanted to say that I had some "zone already loaded" problems, and I fixed it by |
I'm getting this error when running the following command:
I changed app/vendor-platform.android.ts file according to this comment with no luck.
Please, see below my package.json and the error stack trace
The text was updated successfully, but these errors were encountered: