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.

Can't find variable: element (v2.3.5)

See original GitHub issue

I’m submitting a … (check one with “x”)

  • question
  • any problem or bug report
  • feature request

If you choose ‘problem or bug report’, please select OS: (check one with “x”)

  • Android
  • iOS

cordova information: (run $> cordova plugin list)

com.googlemaps.ios 2.6.0 "Google Maps SDK for iOS"
cordova-plugin-googlemaps 2.3.5 "cordova-plugin-googlemaps"

If you use @ionic-native/google-maps, please tell the package.json (only @ionic-native/core and @ionic-native/google-maps are fine mostly)

"@ionic-native/core": "4.6.0",
 "@ionic-native/google-maps": "^4.8.2",

Current behavior: ReferenceError: Can’t find variable: element

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
LabDevecommented, Jun 1, 2018

I think the problem lies in the CordovaGoogleMaps.js file. In line ~854, the “element” variable does not seem to exist. I do not know if it is a global variable or in any case where it is declared …

0reactions
wf9a5m75commented, Jun 1, 2018

Thank you. Please reinstall the plguin from the multiple_maps branch.

cordova plugin rm cordova-plugin-googlemaps

cordova plugin add https://github.com/mapsplugin/cordova-plugin-googlemaps#multiple_maps

Read more comments on GitHub >

github_iconTop Results From Across the Web

REACT-NATIVE : : ReferenceError: Can't find variable: Element
I haven't used React Native, so this is a quick guess: does this get called before the DOM exists? When using other SSR...
Read more >
REACT-NATIVE - abcjs - ReferenceError: Can't find variable
Unfortunately, you need a DOM set up. I haven't used react-native, so I'm not sure if this will work: What works for me...
Read more >
Robot Framework User Guide
Find Environment Variables under Settings . There are variables affecting the whole system and variables affecting only the current user.
Read more >
MATCH - Cypher Manual - Neo4j
The MATCH clause allows you to specify the patterns Neo4j will search for in the database. This is the primary way of getting...
Read more >
Everything you need to know about CSS Variables
Most programming languages have support for variables. But sadly, CSS has lacked support for native variables from the very beginning.
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