react-google-maps-api icon indicating copy to clipboard operation
react-google-maps-api copied to clipboard

NoApiKeys even though valid key provided

Open oenqvist opened this issue 2 years ago • 2 comments

Hello, I'm playing around with google-maps-api (the repo https://github.com/leighhalliday/google-maps-intro/blob/main/pages/places.js) and I run into a problem. When I try to run the code with my personal api key (that I know is valid and works) I get: Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys

Do anybody know what might be wrong here?

oenqvist avatar Jul 15 '22 15:07 oenqvist

@oenqvist Sorry, there is old version of our lib, and react@17

try to update to react@18 and latest version of our lib, and follow issues to resolve upgrade related issues.

Also you can try to ping Leigh Halliday himself in youtube comments.

JustFly1984 avatar Jul 15 '22 16:07 JustFly1984

Thanks @JustFly1984, updated to react 18 and "@react-google-maps/api": "^2.12.0". Still same problem.. I will look into it more deeply.

oenqvist avatar Jul 15 '22 16:07 oenqvist