-
Notifications
You must be signed in to change notification settings - Fork 822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find namespace 'google'. #1209
Comments
This comment was marked as outdated.
This comment was marked as outdated.
DarkTrick
changed the title
Cannot find namespace 'google'.
Cannot find namespace 'google'. → Docs change suggestion
Jun 15, 2022
DarkTrick
changed the title
Cannot find namespace 'google'. → Docs change suggestion
Cannot find namespace 'google'.
Jun 15, 2022
I found a solution. The docs are rather confusing in various points. Would be nice, if the docs could feature a more simpler and working example like the one below :)
|
Thanks for this, now I have a working example I can start playing around. |
@DarkTrick Thank you for sharing your solution! We'll look at improving the code sample. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Operating system
macOS 12.04
Browser Version
Firefox 100.0.2
How severe is the bug?
moderate
Bug description
This bug is about the code excerpt from https://developers.google.com/maps/documentation/javascript/react-map#add-map
Using the given code block (see below), will lead to
Cannot find namespace 'google'.
andProperty 'google' does not exist on type 'Window & typeof globalThis'
. The imports linked in this repository does also not solve the problem.Steps to reproduce
Follow the steps on
https://developers.google.com/maps/documentation/javascript/react-map#typescript
Console log output
Source code as suggested by the guide
The text was updated successfully, but these errors were encountered: