Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71530

I encountered an error when I executed the command "ionic serve"

$
0
0

@wenner wrote:

Hi guys
when i start a server , return me this:

Running 'build:before' gulp task before build
[08:02:48] Starting 'clean'...
[08:02:48] Finished 'clean' after 25 ms
[08:02:48] Starting 'build'...
[08:02:48] Starting 'sass'...
[08:02:48] Starting 'html'...
[08:02:48] Starting 'fonts'...
[08:02:48] Starting 'scripts'...
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";
--^

[08:02:48] Finished 'sass' after 124 ms
[08:02:48] Finished 'html' after 114 ms
[08:02:48] Finished 'scripts' after 139 ms
[08:02:48] Finished 'fonts' after 195 ms
[08:03:04] Finished 'build' after 16 s
[08:03:04] Starting 'build:before'...
[08:03:04] Finished 'build:before' after 14 μs

then i found ionic-angular/components.core.sass , and comment the line @if

// Ionicons (to be replaced with SVGs)
$ionicons: true !default;
//@if ($ionicons) {
@import "fonts/ionicons";
//}

restart serve , isok

how do i fix?????

ionic info

Your system information:

Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.4
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS:
Node Version: v4.4.2

node-sass

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 71530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>