question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not find cordova.js script tag. Plugin loading may fail on android device

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Reactions:8
  • Comments:19

github_iconTop GitHub Comments

9reactions
oberoivaruncommented, Oct 25, 2018

Facing the same issue. But only with the --prod flag.

3reactions
VaultDevelopercommented, May 14, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found