What a disappointment! Ionic has become the Java of mobile development

Very possible, but the combinations are endless.

If it is just for you, you can get the same result by using nvm or nvm-windows to install multiple node versions (which then can have their own NPM, Cordova and Ionic CLI).

That’s exactly what I realized. When I downgraded to Cordova 6.0.0 everything worked again.
But I think I was very radical al to download to version 6.0.0, what would be the stable version of the 6.x that I could use?

I thought of Docker because I had problems using nvm in my Ubuntu = /

1 Like

6.5 was the previous version. If the project worked before, you should actually check which version you were using. More important than Cordova CLI itself will probably be the platform version (older CLI use other platform versions)

My God, I thought I had solved my problems by downgrading from Cordova, but now my app installs the plugins, runs without errors …

I used version 7.0.1 of Cordova, now I’m with 6.0.0, but I have not changed the other CLI. Ionic-CLI continues in the most current version.

However, it seems that the styles are not being recognized.
There is no error in the console or in the compilation, but the app is without styles, look:

Yes, Ionic CLI is a different thing completely - it only triggers the cordova.

That would make sense with old cordova-android or cordova-ios platforms.

What is your ionic info output now?

Now, my ionic info is:

cli packages: (/home/walter/workspace/0-javascript/0-ionic/dieta-fit-v2-old_cordova/node_modules)

    @ionic/cli-plugin-cordova       : 1.6.2
    @ionic/cli-plugin-ionic-angular : 1.4.1
    @ionic/cli-utils                : 1.7.0
    ionic (Ionic CLI)               : 3.7.0

global packages:

    Cordova CLI : 6.5.0 

local packages:

    @ionic/app-scripts : 2.1.3
    Cordova Platforms  : android 6.1.2 browser 4.1.0 ios 4.3.1
    Ionic Framework    : ionic-angular 3.6.0

System:

    Android SDK Tools : 26.0.2
    Node              : v7.10.1
    OS                : Linux 4.10
    npm               : 5.3.0

Ok, these look semi ok now. Still, won’t have the newest fixes for current Android SDK/Studio, iOS releases etc.

But how is this affecting the css / scss interpretation of the project? Because the whole app is without the style applied, and I do not know why …

I took a look at the build/main.css file and the ionic is not including the css of each component in the build. Is only including the default framework css. because?

Ooops!
I discovered what it was. I was using the flag –prod when using ionic serve:

$ ionic serve -lcs --prod

It was just getting the flag and the app’s stilts started working again:

$ ionic serve -lcs

Thank you all.

2 Likes

I happen to like Java…

See this update on the issue I created about this:
https://github.com/ionic-team/ionic-cli/issues/2625#issuecomment-322332404

1 Like

Thank you @wgbn. It worked flawlessly. You saved my day :wink: