Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
evoactivity opened this issue Jun 15, 2020 · 4 comments

Comments

@evoactivity
Copy link

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: -------------------------------
@PowerP
Copy link

PowerP commented Sep 4, 2020

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

@alexblom
Copy link
Member

alexblom commented Sep 4, 2020

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?

@PowerP
Copy link

PowerP commented Sep 5, 2020

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.

@phonenix66
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants