Dionysos Da Vinci Dionysos Da Vinci - 1 month ago 8x
Git Question

Making Ionic 2 project work after cloning from git

I have a working app (Ionic 2 Beta 7). I pushed to my Github, then git cloned into a different folder.

In the new folder, I ran

npm install
ionic state restore
for dependencies, and added android platform.

ionic serve
still produces a blank app.

The only error message in Chrome's dev tools is

http://localhost:8100/build/js/app.bundle.js Failed to load resource:
the server responded with a status of 404 (Not Found)

I have read different topics but haven't managed to make it work.
I tried
bower install
& running cmd as admin, nothing.

For the record, everything is on C:\ drive, where Node is installed as well.


Turns out there is an error in the config. Steps to solve:

  1. Find the file package.json in project root
  2. Edit the line "ionic-gulp-browserify-typescript": "^1.1.0" to "ionic-gulp-browserify-typescript": "1.1.0" [remove the caret (^)].
  3. Run npm install

My issue was that I had only run npm install in the beginning, but you need to run it after you fix the dependency issue in package.json.

Link to Ionic forum fix post: https://forum.ionicframework.com/t/ionic-2-not-generating-app-bundle-js/55640/3