Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug] "AdvancedMarkerElement: map invalid: not an instance of MapsApiMap"

オープン
#540 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
react, typescript
領域
frontend

調査の方向性

リンクされた CodeSandbox と、複数ページでの Map および TooltipMarker のセットアップから始め、ページ変更時に断続的に発生する map-invalid エラーを再現しながら AdvancedMarker の統合を調査します。再現したセットアップでエラーが発生しなくなるよう問題を特定して解決し、既存のテストエントリーポイントが適用できる場合は、関連するリグレッションテストのカバレッジも追加できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
Description

We keep getting this error:

AdvancedMarkerElement: map invalid: not an instance of MapsApiMap

I'm not sure what's causing this issue to occur, but we keep running into it. There are a few things to note about our usage:

  • We're using the AdvancedMarker to create a TooltipMarker component
  • Our app renders a list of pages, each with their own Map, each receiving a unique location

At first I thought the error was perhaps being caused by some mounting/unmounting behavior that happens when switching between pages, or by how we implemented TooltipMarker, but I'm honestly not sure.

Steps to Reproduce

https://codesandbox.io/p/sandbox/advancedmarker-example-cyycp9

Getting the error to show up consistently is... not easy. The codesandbox linked above shows how the app is set up at a basic level, i.e. multiple pages rendering their own Map and a basic TooltipMarker implementation using AdvancedMarker.

Environment
  • Library version: 1.1.1
  • Google maps version: weekly
  • Browser and Version: Chrome 128
  • OS: Mac
Logs

No response

主要言語
TypeScript
スター
1.9k
フォーク
195
平均マージ
2日 18時間
マージ済み PR(30日)
15

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

visgl/react-google-maps のほかの issue

visgl/react-google-maps の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。