-
-
Notifications
You must be signed in to change notification settings - Fork 40
npm run start-ios-bundle does not work on created application #32
Comments
I have seen several cases of that error, and I believe it's caused by the new TypeScript 2.1 compiler. Could you try downgrading your compiler to version 2.0.10 or just |
Just tried with a fresh app, had another error:
It rans fine when executing without packing it. |
I can't reproduce the new error with a fresh app. Could you put your app somewhere on github, so I can take a look at it? |
Sure, just created: https://github.com/ignaciolarranaga/samplewepackproblem |
Just realized there is a new version of the client, upgrading right now, might be related ? (I'm with 2.4.0) |
Same, thing, just upgraded to 2.4.2 |
Your app bundles and runs fine on my end. I have no idea what's different on my mac machine. What is your node.js version? I'm using node 6.9.2. Another thing you can try, since this looks like a strict mode syntax error, would be to disable strict mode by adding |
Ready, it worked successfully with the upadate of node. Can you please close this one and reopen #33 ?, because there seems to still prevail some issues with the plugins. |
Good. We're almost there! I opened a bunch of pull requests for those plugins: |
Hey @hdeshev, I try with the updated versions (and manually touch some, because not yet updated), but after get all in shape I still have this error when start:
Here is the full log in case useful:
|
I think I know what's going wrong here. I'd gotten the platform/ios/... subdir discovery wrong, and there were cases when no files got transferred to the device. Could you try upgrading to [email protected]? |
Upgraded, but unfortunately another error:
|
Could you double check that all dependency versions are correct, i.e. using Angular 2.2.1, and ng-tools 1.6? I was able to run your |
I created a sample project and just found tns-core-modules-2.4.3 as a difference. I updated it but still having the same issue (I'm running for emulator/ios by the way).
Here is the part of the bundle that is throwing the error (may be not useful but just incase):
And this is the main module: // this import should be first in order to load some required settings (like globals and reflect-metadata) setStatusBarColors(); // Changed to avoid issue with webpack:
All the modules except the first one used (RegistrationModule) are lazy loaded.
Here is the complete list of dependencies:
I'll try to create a similar project with all the dependencies and startup part for reproduction. |
Just wanted to say that |
Hey, sorry for the delay, I'm progressing slowly. Here is the first finding. I was doing the import of the platformModule in this way:
which lead me to this error: I solve it just moving to the way it is now presented in here: http://docs.nativescript.org/angular/code-samples/platform.html Despite the previous and only on ios, this error appears #42, but it does not prevent the application from bootstrap. |
Oh, God, so it's just the old-school import that could break it?! Good to know -- thanks for sharing that! |
Uh oh!
There was an error while loading. Please reload this page.
It throws exception and it does not start:
Steps to reproduce:
The text was updated successfully, but these errors were encountered: