Hi there, I’m new to ionic and I installed and maned to run the app. I then installed GULP and tried to run the watch but it keeps failing to compile the sass files that come with Ionic. I’ve checked the obvious things like the folder structure etc but I’m wondering if there is something else I need to do before running this?
This is the error message I keep getting when I run the watch.
stream.js:94
throw er; // Unhandled stream error in pipe.
^
Error: /Users/xx/Sites/myapp/www/lib/ionic/scss/scaffolding:10: error: no mixin named box-sizing
Backtrace:
/Users/xxx/Sites/myapp/www/lib/ionic/scss/scaffolding:10
I ran ionic setup sass & then npm update -g ionic to update – to version 1.2.4. The I ran gulp watch and got the error below. I then created a new app and went through the whole process again. I got the error again.
!-- ionic app scss
/*
To customize the look and feel of Ionic, you can override the variables
in ionic’s _variables.scss file.
For example, you might change some of the default colors:
This should be a permission issue, it causes if you run ionic setup sass with sudo(root access) and try to run/compile the scss without sudo(root access) . you can either
delete/change owner of these 2 files
www/css/ionic.app.css and
www/css/ionic.app.min.css
and then run “ionic serve” without the need of root access
I also got this issue. Got it working by removing all my sass in the file. Then replaced bits until it broke again. It seemed to be an error with a media query targeting iphone 6 aspect ratio. hth
@maheshep, Ran in to the same issue, but was able to fix from your first solution. Just by removing the www/css/ionic.app.css and www/css/ionic.app.min.css.
Hi there, have anyone having trouble download setup sass by using this command line > ionic setup sass ?
For me, it gave me this error “setup” is not a valid task.