Skip to content

[Ionic v4] Uncaught Error: cordova already defined #15143

@peterpeterparker

Description

@peterpeterparker

Ionic Info
@ionic/angular: "4.0.0-beta.2"

Describe the Bug
When I run my app on a real Android device (Samsung Edge / Android v7) and plug the device with a cable to my laptop, I found the following error in the Chrome Debugger console

Uncaught Error: cordova already defined
    at cordova.24be14f7eb59f2cab434.js:1
    at require (cordova.24be14f7eb59f2cab434.js:1)
    at cordova.24be14f7eb59f2cab434.js:1
    at cordova.24be14f7eb59f2cab434.js:1

Related Code
I double checked, I only have got the following in the <head/> of index.html once

 <script src="cordova.js"></script>

Expected Behavior
No such error

PS

Not sure if it's Ionic related or Ionic-native v5 related, therefore I opened the issue here, hope you don't mind too much

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions