Hey everyone,
i just started with Ionic 2 and i am getting error when i try to serve project.
error looks like this:
node_modules\ionic-angular\components.core.scss
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";
--^
when browser opens everything looks ugly, looks like there is no angular at all.
That error seems to steam from the ionic core scss. The @Import font/ionicioncs is sitting in a @if statement. If you essentially take it out your scss will compile. Apparently the sass compiler hits that I line and stop, which doesn’t produce and CSS in the build folder.