ionic-team / ionic-framework

A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
https://ionicframework.com
MIT License
50.91k stars 13.52k forks source link

bug: #22005

Closed manel00 closed 4 years ago

manel00 commented 4 years ago

Bug Report

Ionic version: [X] 4.x

Current behavior: Doing Ionic serve

Expected behavior: It should run, but it crashes

Steps to reproduce: "dependencies": { "@angular/common": "^7.2.2", "@angular/core": "^7.2.2", "@angular/fire": "^5.2.1", "@angular/forms": "^7.2.2", "@angular/http": "^7.2.2", "@angular/platform-browser": "^7.2.2", "@angular/platform-browser-dynamic": "^7.2.2", "@angular/router": "^7.2.2", "@capacitor/android": "^1.0.0", "@capacitor/cli": "^1.0.0", "@capacitor/core": "^1.0.0", "@ionic-native/camera": "^5.8.0", "@ionic-native/core": "^5.8.0", "@ionic-native/email-composer": "^5.9.0", "@ionic-native/local-notifications": "^5.28.0", "@ionic-native/photo-library": "^5.8.0", "@ionic-native/social-sharing": "^5.8.0", "@ionic-native/splash-screen": "^5.0.0", "@ionic-native/status-bar": "^5.9.0", "@ionic/angular": "^4.1.0", "@ionic/lab": "^2.0.2", "angularfire2": "^5.2.1", "cordova-android": "^7.1.4", "cordova-plugin-camera": "^4.1.0", "cordova-plugin-device": "^2.0.2", "cordova-plugin-email-composer": "^0.9.2", "cordova-plugin-file": "6.0.1", "cordova-plugin-ionic-keyboard": "^2.1.3", "cordova-plugin-ionic-webview": "^4.1.0", "cordova-plugin-splashscreen": "^5.0.2", "cordova-plugin-statusbar": "^2.4.2", "cordova-plugin-whitelist": "^1.3.3", "cordova-plugin-x-socialsharing": "5.4.7", "core-js": "^2.5.4", "es6-promise-plugin": "4.2.2", "firebase": "^7.19.1", "ngx-socket-io": "^3.2.0", "node-fetch": "^2.6.0", "rxjs": "~6.5.1", "translate": "^1.1.0", "tslib": "^1.9.0", "zone.js": "~0.8.29" }

Other information: [error] Error: Cannot find module '@angular/compiler-cli/src/tooling' Require stack:

Ionic info:


Ionic:

   Ionic CLI                     : 6.11.6 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 4.11.10
   @angular-devkit/build-angular : 0.1000.8
   @angular-devkit/schematics    : 7.3.10
   @angular/cli                  : 8.3.29
   @ionic/angular-toolkit        : 1.5.1

Capacitor:

   Capacitor CLI   : 1.5.3
   @capacitor/core : 1.5.3

Cordova:

   Cordova CLI       : 10.0.0
   Cordova Platforms : android 7.1.4
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 10 other plugins)

Utility:

   cordova-res : not installed
   native-run  : 1.0.0

System:

   Android SDK Tools : 26.1.1 (/home/manel/Android/Sdk)
   NodeJS            : v12.18.3 (/usr/local/bin/node)
   npm               : 6.14.8
   OS                : Linux 4.13```
dvdknaap commented 4 years ago

If you donpm i @angular/compiler-cli it should be fixed

manel00 commented 4 years ago

No, it doesn't fix it, once more it comes to the same situation:

found 17 vulnerabilities (9 low, 3 moderate, 5 high) //Ionic serve It works but with errors on the UI

then I run npm audit fix //Not working Ionic serve

then it comes this error i posted //Still not working Ionic serve

and then npm i @angular/compiler-cli and it turns like the start (17 vulnerability)

indraraj26 commented 4 years ago

kindly ignore the vulnerability that you will be fix in upcoming version npm i @angular/compiler-cli --save-dev ionic serve

Note: do not run npm audit fix

manel00 commented 4 years ago

It doesn't work the app properly, that's why i have to run npm audit fix

indraraj26 commented 4 years ago

we don't know whats not working, It is not necessary to run npm audit fix Please provide repo to reproduce the issue at our end

ionitron-bot[bot] commented 4 years ago

Thanks for the issue! This issue appears to be a support request. We use this issue tracker exclusively for bug reports and feature requests. Please use our forum or our slack channel for questions about the framework.

Thank you for using Ionic!