TeamMaestro / angular-native-seed

Build web apps and NativeScript applications from one codebase using the AngularCLI.
265 stars 71 forks source link

Consistently getting error when compiling for android and ios #47

Closed Xamlware closed 7 years ago

Xamlware commented 7 years ago

I cloned the project onto My MacBook pro and followed the instructions

On android:

Project successfully created. Executing before-prepare hook from /Users/jbaird/Documents/development/test/nativescript/hooks/before-prepare/nativescript-dev-android-snapshot.js Executing before-prepare hook from /Users/jbaird/Documents/development/test/nativescript/hooks/before-prepare/nativescript-dev-sass.js Found peer node-sass No input file was found.

Unable to apply changes on device: 3300c7a83f28a385. Error is: SASS compiler failed with exit code 1.

On IOS..

Project successfully created. Executing before-prepare hook from /Users/jbaird/Documents/development/test/nativescript/hooks/before-prepare/nativescript-dev-android-snapshot.js Executing before-prepare hook from /Users/jbaird/Documents/development/test/nativescript/hooks/before-prepare/nativescript-dev-sass.js Found peer node-sass No input file was found.

Unable to apply changes on device: f72f70777ff56844ed0217e01fe8d389ad058088. Error is: SASS compiler failed with exit code 1.

sean-perkins commented 7 years ago

Please refer to this issue: https://github.com/NativeScript/sample-Groceries/issues/267 and install node-sass globally.

npm install -g node-sass

Let me know if that resolves your issue.

Xamlware commented 7 years ago

Still getting same issue...

sean-perkins commented 7 years ago

I have re-cloned the project and had no trouble running both runtimes. The issue is definitely related to sass not being available on your machine.

When you run a blank NS project with the nativescript-dev-sass extension, do you also have this problem?

Xamlware commented 7 years ago

I created one and it built fine. Error when trying to run on device.

Xamlware commented 7 years ago

I have SASS installed, I have node-sass installed, recloned the projecs and still the errors..

londomloto commented 7 years ago

have trying to create some .scss (ex: app.android.scss) file and run tns run again

Xamlware commented 7 years ago

It turned out to be permission on the platforms/ios and platforms/android folders. I had to

sudo chmod -R a+rwx

for both directories to make it work. I can't believe that this is not a problem that many experience and should be addressed in the read.me.

Thanks for the help you provided.

vinayvnvv commented 6 years ago

It is finding a at least one .scss or .sass file in app folder. Just create > app.scss file in app folder and rebuild the application.