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.

You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors

See original GitHub issue

Hi, thanks for your component, it is great. I have a leaflet map with react-leaflet-google-layer and it is using google API too. Got a problem with this You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors. I tried to add/remove <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key="> to different parts of the index.html, does not help. “react-google-autocomplete”: “^1.2.6”, Is there any way to fix this? Thanks.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:20 (4 by maintainers)

github_iconTop GitHub Comments

15reactions
GarryOnecommented, Oct 19, 2021

If you’re using this package alongside with google-map-react, you can just tell the last package to include the places api.

<GoogleMapReact bootstrapURLKeys={{ key: API_KEY, libraries:['places'], }} />

5reactions
thebiltheorycommented, May 21, 2021

✋🏽 Same here.

Using:

  • "@react-google-maps/api": "^2.1.1",
  • "react-google-autocomplete": "^2.1.2",
You have included the Google Maps JavaScript API multiple times on this page.
This may cause unexpected errors.


Uncaught (in promise) TypeError: Cannot read property 'um' of undefined
Read more comments on GitHub >

github_iconTop Results From Across the Web

"You have included the Google Maps API multiple times on ...
I'm getting the error "You have included the Google Maps API multiple times on this page. This may cause unexpected errors." I know...
Read more >
You have included the Google Maps API multiple times on this ...
Hi there, Need help to debug: "You have included the Google Maps API multiple times on this page. This may cause unexpected errors....
Read more >
Fix: Google Maps JavaScript API Multiple Times On This Page ...
"You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors." To fix this, please check...
Read more >
You have included the Google Maps ... - WordPress.org
This may cause unexpected errors.” I have remove all dns-prefetch but still it's giving tis error. The page I need help with: [log...
Read more >
You have included the Google Maps API multiple times on this ...
You have included the Google Maps API multiple times on this page. This may cause unexpected errors. Created: July 25, 2019 ...
Read more >

github_iconTop Related Medium Post

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