You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors #3200
Unanswered
jhoriascos
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm new to React and Ionic
I'm working with Google Maps so I am using:
"@react-google-maps/api": "^2.17.1",
"react-google-autocomplete": "^2.7.2",
My Environment
os: Mac, Android, IOS
node --version: 14.21.1
react version: 18.2.0
Please provide an explanation of the issue
The error I'm getting is:
You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.
Ofc, once the map is removed from the same page - the autocomplete works properly!. Also, the map component works both with the autocomplete and without it.
I need to include the two libraries in the same page, can someone help me or do you have an example of how to implement them?
I am sharing the basic example code I am using to test the integration of the two libraries on the same page.
`
`
Beta Was this translation helpful? Give feedback.
All reactions