Updating from RC0 to RC2 breaks my app. Rollback to RC0 ionic don't build


#1

Hi,

I wanted to use the new RC2 in my current developping ionic RC0 app

As this breaks my app, now I’m rolling back form RC0 to RC2.

I have deleted the node_modules and ran npm install

At this time, my app has build errors… I have fixed all versions of packages.

Now, creating a new app running “ionic start myNewApp sidemenu --v2 --ts” and runnning “ionic serve” launches the browser without building.

I have reinstalled the ionic-cl with npm install ionc@beta -g, no build is done jet

ionic info output:

Your system information:

Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.0-beta.3
Ionic App Lib Version: 2.1.0-beta.1
OS:
Node Version: v6.7.0

My ionic version: 2.1.0

Thank you for your help

Mario


#2

for cli shoud be

npm install -g ionic

giving

 ordova 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: v6.9.1
Xcode version: Not installed

#3

Also 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.


#4

“Breaks my app” and “has build errors” are far too vague for anybody to make any relevant suggestions.


#5

Hi,

Thank you all for your reply.

I have uninstalled ionic an installed again with npm install ionic@2.1.0 -g to get the same version of ionic when I started the development.

At this time I noted that creating a new APP with ionic start myAPP tabs --v2 --ts downloads necessary files and runs NPM, but…

After finished the creation of new app I run ionic serve, and the build process is skipped

ionic launches the browser, and I got the messge:

Error: ENOENT: no such file or directory, open ‘D:\Angular\blank\www\index.html’

the command ionic info into the new project return:

Cordova CLI: 6.3.1
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS:
Node Version: v6.7.0

how can I fix my ionic installation?

NOTE: I need the ionic CLI version 2.1.0 and ionic framework 2.0.0.rc0

thank you a lot


#6

If you have just setup a new project, the first thing you should do is run “ionic build” yourself before you run ionic serve.

This will create the www directory in your project. You will also need to follow what Lilibayo said above about changing your package.json file to contain the scripts section.


#7

Hi @stwelgemoed,

I have ran ionic build, then ionic serve and I got the same result

Error: ENOENT: no such file or directory, open ‘D:\Angular\blank\www\index.html’

If you can send me instructions on how to clean all ionic environment to start again, I’ll appreciate.

Thank you for helping.


#8

I added the Android Platform to mine & this resolved this issue for me


#9

Hello everyone,

My new project is building now. Thank you for your time and support.

In the mean time… Why new projects don’t setup rigth the package.json?

Thank you again.