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.

google is not defined?

See original GitHub issue

Hey, I keep getting a reference error for google in the withGoogleMap at line 101.

Uncaught ReferenceError: google is not defined - withGoogleMap.js:101

Does anyone know how to remedy this error?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:44 (1 by maintainers)

github_iconTop GitHub Comments

157reactions
davidpatters0ncommented, Feb 26, 2017

I ran into the same issue due to me using eslint. In order to over come this issue I had to add at the top of my file: /* eslint-disable no-undef */.

89reactions
ArtemKislovcommented, Sep 16, 2017

try adding /* global google */ to the top of the file

Read more comments on GitHub >

github_iconTop Results From Across the Web

"google is not defined" when using Google Maps V3 in Firefox ...
Once I uploaded to a web site, I get a "google is not defined" error on the first line that I try to...
Read more >
Uncaught ReferenceError: google is not defined - MSDN
Usually this type of error is due to forgetting to reference a JavaScript library or trying to access a library object before the...
Read more >
Problem with google maps, google is not defined
I am trying to set up google maps on a wordpress site using the new V3 ... I get an error message :...
Read more >
google is not defined - ionic v3.9.2, angular v5.2.11
Hello guys, i know this error is pretty common but i still have no idea which part did i do wrong. i already...
Read more >
Uncaught ReferenceError: google is not defined
This usually indicates that your library is not loaded and JavaScript does not recognize the 'x'.
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