Ionic2: Ionic Lab


#1

CLI command problem

I try to run ionic serve --lab
but I got this on browser “Cannot GET //__ion-dev-server/ionic_lab.html”

this is my ionic info:
Your system information:
Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.8
Ionic App Lib Version: 2.1.4
Ionic App Scripts Version: 0.0.43
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v5.10.1
Xcode version: Not installed

Thank you


#2

Update your scripts to this in package.json

“scripts”: {
“build”: “ionic-app-scripts build”,
“watch”: “ionic-app-scripts watch”,
“serve:before”: “watch”,
“emulate:before”: “watch”,
“deploy:before”: “build”,
“build:before”: “build”,
“run:before”: “watch”
}

Found the solution here.