Skip to content

[Bug] Throws if an AdvancedMarker is rendered and the apiKey is invalid #889

Description

@bromanazzi

Description

Summary: title

Context:
In our business, clients provide their own api keys. This makes it likely that an apiKeys are invalid, expired or not configured correctly.
We would like to show custom error messages, but throwing makes it impossible. We tried using an error boundary, but I'm not sure how to get the reason for the error.

Steps to Reproduce

Code Sandbox: https://codesandbox.io/p/sandbox/q3cyxh

It should throw on load

Environment

  • Library version: 1.7.1
  • Google maps version: weekly
  • Browser and Version: Chrome latest
  • OS: Windows 10

Logs

TypeError
Cannot read properties of undefined (reading 'getRootNode')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    google maps issueGoogle Maps is misbehaving, upstream issue filed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions