Skip to content

Property 'Map' does not exist on type 'typeof maps' #432

@anirbanmaji

Description

@anirbanmaji

I used the following code to load map

new window.google.maps.Map(ref.current as HTMLElement, {
      center: { lat: -34.0, lng: 150.6 },
      zoom: 8,
    });

I have used the wrapper in the parent component. But on the Map method IDE is following error.
Property 'Map' does not exist on type 'typeof maps'

I have installed the types as well. My map is loading but the only problem is IDE is showing error. I have suspended the error using //@ts-ignore . Please resolve this issue or help me if there is any existing solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage meI really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions