Could not find cordova.js script tag. Plugin loading may fail on android device
See original GitHub issueI’m submitting a … (check one with “x”) [x ] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
starting the app
Expected behavior:
see home page
Steps to reproduce:
Related code:
ionic cordova run android --prod
Other information:
Ionic info: (run ionic info
from a terminal/cmd prompt and paste output below):
Ionic:
ionic (Ionic CLI) : 4.2.1 (C:\Users\albemaes\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.11
@angular-devkit/build-angular : 0.7.5
@angular-devkit/schematics : 0.7.5
@angular/cli : 6.1.5
@ionic/angular-toolkit : not installed
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : not available
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.2.0, (and 5 other plugins)
System:
NodeJS : v8.11.1 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 7
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:19
Top Results From Across the Web
Could not find cordova.js script tag. Plugin loading may fail.
I'm running Ionic v4-b11 and Cordova Android 7.1.1. I've tried putting <script src="cordova.js"></script> into my index.html page, ...
Read more >Ionic V4 - Build Prod "Could not find cordova.js script tag ...
In Ionic v4, when I'm run app bundled in production mode (ionic cordova build android --prod) ...
Read more >cordova-js - npm
The build-tools/build.js process is a Node.js script that concatenates all of the core Cordova plugins in this repository into a cordova.
Read more >Javascript – phonegap cordova.js is missing - iTecNote
phonegap local run android [phonegap] compiling Android. ... I/Web Console( 3946): Could not find cordova.js script tag. Plugin loading may fail.
Read more >Cordova.Js File Not Working - ADocLib
Description: start a new project width ioniccli type is cordova add some usual plugins run on Could not found cordova.js script tag Plugin...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Facing the same issue. But only with the
--prod
flag.I corrected this problem In angular.json, I set buildOptimizer and AoT to false, then I was able to build with --prod. When I reactivated AoT, I see the problem in the log. The dependency injection was doing the wrong way during the migration.