-
-
Notifications
You must be signed in to change notification settings - Fork 241
New nativescript+ng app created with version 2.2.1 of Nativescipt crashes on start #444
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
Same here. |
I am also having the same problem on iOS and Android for my existing projects - at least when I clone them from git... I don't have any previously built workspaces to try those. This sequence works:
This sequence does not work:
That results in this error on the Android screen:
|
It appears the problem is in the I am able to get working again with these steps:
|
I'm emulating on iOS and the above didn't work for my existing project. Even trying to remove and re-add the platform a few times didn't do it. What I found worked is getting a fresh download of my existing project and doing:
So if I do it before |
Thanks ross-bradbury and SittingFox. Using 0.6.12 seemed to have fixed the issue for me too. For anyone else who tripped on this, probably safer to change your 'package.json' and staple the zone.js version at 0.6.12. - "zone.js": "^0.6.12"
+ "zone.js": "0.6.12" |
@diskshima Are you using Angular RC6. Because the above step doesn't seems to be work. |
I just changed the project template to use a pinned zone.js@0.6.17 until we figure a way to make this work with zone.js@0.6.21 |
The zone.js issue has been fixed for nativescript-angular@1.0.0 |
to: @hdeshev do you want me to close the related zone.js issue? |
@warren-bank I suggest we keep it open until the zone.js PR gets accepted, and we remove the need for our own fork. |
you're the boss :) ..just let me know if there's anything that I can do to help |
I've just tried to create a new app with angular 2 support using these commands:
but I'm getting these error when the app starts in the emulator:
I'm currently running nativescript 2.2.1.
I've got a previous app generated some days ago and everything worked but the package.json is quite different.
I've tried to copy the old dependencies but I still get the same error...
Here's the package.json file generated today:
I was running node 6 so I downgraded to the node 4 LTS version suggested on nativescript site but still without success...
Any suggestion I can use to fix the problem?
The text was updated successfully, but these errors were encountered: