-
-
Notifications
You must be signed in to change notification settings - Fork 49
IOS bundle failing #92
Comments
If is useful my package.json is
|
Hey @Jonatthu, I'm sorry, I can't reproduce the problem. Can you describe exactly the steps you make - from creating the app to building it? |
@sis0k0
Running webpack for ios...
|
@devna13 try deleting the platforms folder. |
tried that.. getting same error |
@sis0k0 The last thing worked for me thanks! |
@devna13, |
Thanks @sis0k0, I made the changes you mentioned
What's that file? StyleUrlResolvePlugin |
That's the plugin responsible for resolving platform-specific css files ( Is that file related to your issue? |
I think so, I use SASS plugin and I have these files at the root: _common.scss in app.sass I only import dynamically generated css files
if I comment out in webpack.common.js , it proceeds ! here is the output I get, which is failed to import @import url("~/platform.css"); into app.css, _common.scss got imported correctly
any suggestion how to resolve this ? Thanks |
Can you share the file |
@sis0k0 Is this enough ? I only have "ProfilePage" string in import { Component, Input, Output, OnInit, ElementRef, ViewChild, EventEmitter } from '@angular/core'; import { UserService } from '../../services/user.service'; var PickerManager = require("nativescript-timedatepicker"); let path = './profile'; /**
//some more code .... } |
if I uncomment
this is the error I get: npm run ns-bundle --ios --start-app
|
@devna13
You can't have dynamic values for the The second error is caused by a problem in the plugin which we'll provide a fix for. |
I made all the changes (I knew it's going to bite me somewhere!), and now bundle.js gets created but it fails to launch the app:
|
Do you have a |
missing: https://github.com/NativeScript/template-hello-world-ng/blob/release/main.aot.ts still getting errors : rm -rf platforms/ && npm run ns-bundle --ios --start-app 1 0x1062fa33c -[TNSRuntime executeModule:referredBy:] which solved by adding "noEmitHelpers": true, to @sis0k0 you are the best! |
also had to change the order in webpack.common to fix css import
|
same problem : I don't see relation with the bug ??? |
main.ts -> wrong path : import { environment } from './environments/environment'; |
For reference puposes, see this comment here |
It is a fresh nativescript starter with 2.5 and angular using the hello-world template
The text was updated successfully, but these errors were encountered: