ionic-team / ionic-cli

The Ionic command-line interface
MIT License
1.99k stars 653 forks source link

BUG: (Ionic5 width cordova)build result: Could not find cordova.js script tag. Plugin loading may fail. #4365

Open AlwaysLoveme opened 4 years ago

AlwaysLoveme commented 4 years ago

Description:

I created an project width "@ionic/cli " which use "ionic start XX --type=angular --cordova", but when build android , it console that "Could not find cordova.js script tag. Plugin loading may fail", and some cordova plugins not worked, also on IOS.

Steps to Reproduce:

1: npm i @ionic/cli@latest -g
2:  ionic start demo --type=angular --cordova
3:  ionic cordova plugin add ....
4:  ionic cordova platform add ios/android
5:  ionic cordova build android/ios

Output:

My ionic info:

Ionic:

   Ionic CLI                     : 6.3.0 (C:\Users\admin\AppData\Roaming\npm\node_modules\@ionic\cli)
   Ionic Framework               : @ionic/angular 5.0.6
   @angular-devkit/build-angular : 0.803.25
   @angular-devkit/schematics    : 8.3.25
   @angular/cli                  : 8.3.25
   @ionic/angular-toolkit        : 2.2.0

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : android 8.1.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.1.3, (and 19 other plugins)

Utility:

   cordova-res (update available: 0.11.0) : 0.9.0
   native-run                             : 0.3.0

System:

   NodeJS : v12.15.0 (D:\Softs\Nodejs\node.exe)
   npm    : 6.13.4
   OS     : Windows 10

Other Information:

AlwaysLoveme commented 4 years ago

my project git url: https://code.aliyun.com/shunluzhidi/measuring-shop-ios.git