Ionic beta4 starter app issue


#1

i upgraded to ionic 2.0.0-beta.4 i installed a blank starter app when i run it in ionic serve

our system information:

Cordova CLI: 6.1.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
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X El Capitan
Node Version: v4.4.3
Xcode version: Not installed


#2

Can you install a new project and tell if u get the same result?
If the new project works fine then copy your app folder into this new one.


#3

@b1x1t0 ya still i get the same type of err, in my terminal when i run ionic serve,
this is my terminal view

yokeshs-Mac-mini:~ yokesh$ cd MyIonic2Project/
yokeshs-Mac-mini:MyIonic2Project yokesh$ ionic serve
WARN: ionic.config.js has been deprecated, you can remove it.

Running ‘serve:before’ gulp task before serve
[17:23:19] Starting ‘clean’…
[17:23:19] Finished ‘clean’ after 13 ms
[17:23:19] Starting ‘watch’…
[17:23:19] Starting ‘sass’…
[17:23:19] Starting ‘html’…
[17:23:19] Starting ‘fonts’…
[17:23:19] Starting ‘scripts’…
[17:23:19] Finished ‘scripts’ after 242 ms
[17:23:19] Finished ‘html’ after 252 ms
[17:23:20] Finished ‘fonts’ after 571 ms
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”;
–^

[17:23:20] Finished ‘sass’ after 955 ms
7.3 MB bytes written (19.00 seconds)
[17:23:39] Finished ‘watch’ after 20 s
[17:23:39] Starting ‘serve:before’…
[17:23:39] Finished ‘serve:before’ after 13 μs

WARN: ionic.config.js has been deprecated, you can remove it.
The port 8100 was taken on the host 192.168.1.3 - using port 8101 instead
The port 35729 was taken on the host 192.168.1.3 - using port 35730 instead
Running live reload server: http://192.168.1.3:35730
Watching: www//*, !www/lib//*
√ Running dev server: http://192.168.1.3:8101
Ionic server commands, enter:
restart or r to restart the client app from the root
goto or g and a url to have the app navigate to the given url
consolelogs or c to enable/disable console log output
serverlogs or s to enable/disable server log output
quit or q to shutdown the server and exit

ionic $

And in my browser i get an error like this


#4

Hi I am facing the same issue in 2.0.0-beta.23


#5

The issue should be already fixed:

I would recommend you to try starting the app (from scratch) again.

If the problem is not solved, there’s also a workaround in the comments of the issue.