I followed the instructions at http://ionicframework.com/docs/v2/getting-started/installation/
Ionic serve doesn’t work and I get only a white screen.
0 076138 log Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode.
1 076142 warn Native: tried calling undefined.styleDefault, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
serve /build/pages/page1/page1.html
2 079940 group EXCEPTION: Error: Uncaught (in promise): SyntaxError
3 079942 error EXCEPTION: Error: Uncaught (in promise): SyntaxError
4 079945 error STACKTRACE:
5 079947 error Error: Uncaught (in promise): SyntaxError
at resolvePromise (http://localhost:8100/build/js/zone.js:538:26)
at Anonymous function (http://localhost:8100/build/js/zone.js:574:18)
at ZoneDelegate.prototype.invokeTask (http://localhost:8100/build/js/zone.js:354:18)
at onInvokeTask (http://localhost:8100/build/js/app.bundle.js:30531:25)
at ZoneDelegate.prototype.invokeTask (http://localhost:8100/build/js/zone.js:354:18)
at Zone.prototype.runTask (http://localhost:8100/build/js/zone.js:256:22)
at drainMicroTaskQueue (http://localhost:8100/build/js/zone.js:474:26)
at invoke (http://localhost:8100/build/js/zone.js:426:22)
6 079949 groupEnd
7 079953 error Unhandled Promise rejection:, [object Object], ; Zone:, angular, ; Task:, Promise.then, ; Value:, [object Object]
serve /build/fonts/ionicons.woff?v=3.0.0-alpha.3
ionic info:
Your system information:
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.7
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS: Windows 7 SP1
Node Version: v5.11.0
Any idea what is wrong?
the second tutorial doesn’t work too… :’(
SOLVED!! I dont know why but I changed the browser ionic serve -f chrome and works fine… before used explorer