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

cordova.plugins undefined #1642

Closed
2 of 7 tasks
kdubuc opened this issue Jun 6, 2019 · 4 comments
Closed
2 of 7 tasks

cordova.plugins undefined #1642

kdubuc opened this issue Jun 6, 2019 · 4 comments

Comments

@kdubuc
Copy link

kdubuc commented Jun 6, 2019

Description of the problem: cordova.plugins undefined

Affected platform

  • Android
  • iOS
  • electron
  • web

OS of the development machine

  • Windows
  • macOS
  • linux

Other information:
Capacitor version: 1.0
node version: 11.11.0
npm version: 6.7.0
CocoaPods version: 1.7.1

Hello all,
I have some cordova plugins declared in my package.json. capacitor detect them, and all seems fine with syncing :

...
  Found 6 Cordova plugins for ios
    cordova-plugin-actionsheet (2.3.3)
    cordova-plugin-dialogs (2.0.1)
    cordova-plugin-email (1.2.7)
    cordova-plugin-file (6.0.1)
    cordova-plugin-media (5.0.2)
    uk.co.workingedge.phonegap.plugin.launchnavigator (5.0.4)
...

But, in my app cordova.plugins (or window.plugins) is undefined (cordova is okay).
All Capacitor Plugins are okay, but I cannot use Cordova Plugins (cordova.plugins.email.open({...}) produce an error).

Also, the xcode console shows some logs like this :

⚡️  [log] - deviceready has not fired after 5 seconds.
⚡️  [log] - Channel not fired: onCordovaReady
⚡️  [log] - Channel not fired: onFileSystemPathsReady

I tried to erase ios/ and re-sync from scratch, but same results.

I pretty sure all of this worked before the 1.0.

Some ideas ?

Thanks !

@jcesarmobile
Copy link
Member

Fixed in #1616

@kdubuc
Copy link
Author

kdubuc commented Jun 9, 2019

exactly, thanks !

@gelinger777
Copy link

I have exactly the same issue.
any ideas how to solve it?

Ionic:

   Ionic CLI                     : 6.20.8 (/home/bln77/.nvm/versions/node/v16.19.0/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 6.6.1
   @angular-devkit/build-angular : 15.2.2
   @angular-devkit/schematics    : 15.2.2
   @angular/cli                  : 15.2.2
   @ionic/angular-toolkit        : 8.0.0

Capacitor:

   Capacitor CLI      : 4.7.0
   @capacitor/android : 4.7.0
   @capacitor/core    : 4.7.0
   @capacitor/ios     : not installed

Utility:

   cordova-res : not installed globally
   native-run  : 1.7.2

System:

   NodeJS : v16.19.0 (/home/bln77/.nvm/versions/node/v16.19.0/bin/node)
   npm    : 8.19.3
   OS     : Linux 5.4

@ionitron-bot
Copy link

ionitron-bot bot commented Apr 16, 2023

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Apr 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants