Skip to content

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

@bromanazzi

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions