Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ionic-angular components.core.scss error

Tags:

angularjs

Just starting with Ionic 2. My first app fails with error:

Error: Import directives may not be used within control directives or mixins. on line 34 of node_modules/ionic-angular/components.core.scss @import "fonts/ionicons";

Anyone encountered this problem and knows how to solve it? Would be very grateful for your help!

like image 310
user2734839 Avatar asked Apr 21 '16 00:04

user2734839


1 Answers

I found a solution for this: One of the dependencies has updated (one that is related to sass). In order to fix this issue without changing the files under node-modules is to use specific versions for gulp-sass and node-sass. Use the following commands:

npm install [email protected]
npm install [email protected]
like image 132
galvan Avatar answered Sep 28 '22 17:09

galvan