-
-
Notifications
You must be signed in to change notification settings - Fork 50
npm build:ios
creates a file which references the src
#12
Comments
Did you initialize your project using |
@tuqire i'm getting the same problem to get rid of the |
Node Some extra info |
Please share a repo with your project so we can test the actual core |
https://github.com/triniwiz/nativescript-pager it's in the demo-vue 😃 |
@lewebsimple yes I did initialise it like that. I have left work and don't have my laptop, so will get back to you Monday. @triniwiz if you find a solution please do share it here. |
Node: 8.9.1 I have just tried another bootstrap vue app and it worked fine. If it helps, I only installed nativescript on Friday, possibly something has changed in a new release? |
The fix was removing the |
So debugged the issue.
|
Maybe we should add a validation check for 'name' to prevent people from naming their projects |
Yes that would make sense, I think when spiking it is very convenient to name something |
I think we need to figure out a better way to mark externals, and at this point I feel like a manually managed list might be a better idea. Or mark dependencies as external, and don't mark devDependencies as externals. This is probably a safe bet, because most people will --save their deps, and everything will work, just not get bundled and instead will be handled as external. This is fine, and when someone reaches the point where they would like to improve performance, they can just move the dependencies around, as long as this is documented. |
So i think the way tns know it's a nativescript is by checking the package.json for the following it can be a lower platform version also
|
Hi,
So I appear to be seeing a weird issue, not sure if I am doing something stupid (apologies new to NativeScript).
I have taken this project down as described and ran
npm run build:ios
inside the repo. The file generated indist/app/app.ios.js
doesn't actually contain any transpiled code. Its export is a require of thesrc.main.js
file. Removing the webpack helper functions, I am left with the below:e.exports=require("/Users/USER/Documents/repos/nativescript-shared-components-spike/nativescript-app/src/main.js")
Is this by design?
tns --path dist run ios
causes an app crash with the following errorfile:///Users/USER/Documents/repos/nativescript-shared-components-spike/nativescript-app/src/styles.scss:3:563: JS ERROR SyntaxError: Invalid character: '@'
.Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: