I’m considering migrating my app to Ionic 2 and TypeScript (from Ionic 1), so I’m just trying to get a basic tutorial / playground up and running with ionic start and ionic serve.
However, when I do ionic serve, the browser is just giving a blank screen and the console shows that it has failed to load app.bundle.js with a 404. Indeed, looking in the project directory there is no build directory.
As you can see from the session transcript below, there are no errors logged or any sign that anything has gone wrong from the CLI. Anyone know why this is not working and how to fix it?
Note: doing the same for a non-TypeScript project works fine. It’s only with the --ts option that it is broken.
~/tmp % ionic start playground blank --v2 --ts One awesome Ionic app coming right up... Downloading: https://github.com/driftyco/ionic2-app-base/archive/typescript.zip [=============================] 100% 0.0s Downloading: https://github.com/driftyco/ionic2-starter-blank/archive/typescript.zip Installing Node Modules ♬ ♫ ♬ ♫ Your Ionic app is ready to go! ♬ ♫ ♬ ♫ Make sure to cd into your new app directory: cd playground To run your app in the browser (great for initial development): ionic serve To run on iOS: ionic run ios To run on Android: ionic run android To test your app on a device easily, try Ionic View: http://view.ionic.io New! Add push notifications, update your app remotely, and package iOS and Android apps with the Ionic Platform! https://apps.ionic.io/signup New to Ionic? Get started here: http://ionicframework.com/docs/v2/getting-started ~/tmp % cd playground ~/tmp/playground % ionic serve Running live reload server: undefined Watching: 0=www/**/*, 1=!www/lib/**/* √ Running dev server: http://localhost:8100 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 $ q ~/tmp/playground % find . -type d -name build ./node_modules/zone.js/build ./node_modules/isarray/build ./node_modules/babel-runtime/node_modules/core-js/build ./node_modules/core-js/build ./node_modules/webpack-core/node_modules/source-map/build ~/tmp/playground % ionic info Your system information: Cordova CLI: 6.0.0 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic CLI Version: 2.0.0-beta.17 Ionic App Lib Version: 2.0.0-beta.8 OS: Distributor ID: Ubuntu Description: Ubuntu 15.10 Node Version: v5.5.0