corber icon indicating copy to clipboard operation
corber copied to clipboard

corber start "Could not find cordova.js script tag. Plugin loading may fail."

Open evoactivity opened this issue 5 years ago • 4 comments

When trying to use corber start I get this error in the console, there is no cordova referenced in the index.html.

When I build the apk and look in the built source I can see the cordova.js

DEBUG: -------------------------------
DEBUG: Ember             : 3.18.1
DEBUG: Ember Data        : 3.18.0
DEBUG: Ember Postcss     : 6.0.1
DEBUG: Ember Simple Auth : 3.0.0
DEBUG: -------------------------------

evoactivity avatar Jun 15 '20 13:06 evoactivity

Can this be ignoried or do we ned to set actions?

PowerP avatar Sep 04 '20 10:09 PowerP

I can not replicate the issue. Can you let me know: -If you are Mac/Windows;

  • If the build is still successful despite the error?

alexblom avatar Sep 04 '20 16:09 alexblom

I'm actually new to corber. So I hope it's not a stupid mistake.

I'm on windows. Cordova 9.0.0 Corber 1.4.3

Reproduce:

  • ember init
  • corber init
  • corber platform add android
  • add to environment.js ENV.locationType = 'hash'; ENV.rootURL = '';
  • corber start (in my case use no emulator)
  • Ember welcome page is visible. And hot reload is working.
  • access local host or via chrome inspect: "Could not find cordova.js script tag. Plugin loading may fail. " The Error is coming from cordova.js - line 1739 " // Tries to load all plugins' js-modules. // This is an async process, but onDeviceReady is blocked on onPluginsReady. // onPluginsReady is fired when there are no plugins to load, or they are all done. "

Further Testing Testing plugins. ember-cordova-events works ember-cordova-platform works also cordova-plugin-device works.

corber build --platform=android --environment=production --release Works but I'm not able to install the apk on my device. Not sure yet where the problem is. Message is simple "not installed" I just saw, that after building produktion - the index.js is gone anyway. So I have to move the stuff from there to the ember side?

I'm actually trying to migrate an older cordova project to corber. There I got a bunch of depricated cordova plugins and other problems to get rid off. Anyway there I got a bunch of errors naming "onPluginsReady". Saidly I broke it for now and it#s not possible for me to give ou more infos.

PowerP avatar Sep 05 '20 18:09 PowerP

I have the same problem, corber start in my android phone. cordova.js & cordova_plugins.js is not find. vue project

phonenix66 avatar May 12 '21 03:05 phonenix66