[Bug] Uncaught ReferenceError: _define_property is not defined
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- react, typescript
調査の方向性
添付された sandbox.zip から始め、maplibre-gl 5.11.0 と 5.12.0 または 5.13.0 を切り替えて、ブラウザーの ReferenceError を再現します。パッケージの動作とブラウザーの出力を比較します。新しいバージョンで _define_property エラーなしにマップがレンダリングされるか、非互換性が明確に切り分けられれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
Bit of an odd one that I can't quite figure out. react-map-gl has a peer dependency on maplibre-gl. If I end up with a upgrade of maplibre-gl from 5.11.0 to 5.12.0 (or 5.13.0) I get an error in the browser console, and the map doesn't render:
Browser console:
dbf3e5f8-162b-4b7e-8…-d8d408c9388f:17308 Uncaught ReferenceError: _define_property is not defined
at dbf3e5f8-162b-4b7e-8…8d408c9388f:17308:9
at dbf3e5f8-162b-4b7e-8…8d408c9388f:19735:7
Not working with maplibre-gl 5.12.0
mat@devbox:~/dev/sandbox$ pnpm add [email protected]
Already up to date
Progress: resolved 299, reused 228, downloaded 0, added 0, done
Done in 1.9s using pnpm v10.23.0
mat@devbox:~/dev/sandbox$ pnpm why maplibre-gl
Legend: production dependency, optional only, dev only
[email protected] /home/mat/dev/sandbox (PRIVATE)
dependencies:
maplibre-gl 5.12.0
react-map-gl 8.1.0
├─┬ @vis.gl/react-maplibre 8.1.0
│ └── maplibre-gl 5.12.0 peer
└── maplibre-gl 5.12.0 peer
Working okay with maplibre-gl 5.11.0
mat@devbox:~/dev/sandbox$ pnpm add [email protected]
Packages: +3 -4
+++----
Progress: resolved 298, reused 227, downloaded 0, added 0, done
dependencies:
- maplibre-gl 5.12.0
+ maplibre-gl 5.11.0 (5.13.0 is available)
Done in 3s using pnpm v10.23.0
mat@devbox:~/dev/sandbox$ pnpm why maplibre-gl
Legend: production dependency, optional only, dev only
[email protected] /home/mat/dev/sandbox (PRIVATE)
dependencies:
react-map-gl 8.1.0
├─┬ @vis.gl/react-maplibre 8.1.0
│ └── maplibre-gl 5.11.0 peer
└── maplibre-gl 5.11.0 peer
I guess it's a maplibre-gl problem, but I'm using it from react-map-gl and getting confused. Am I doing anything stupid in the attached sandbox?
Expected Behaviour
Works the same between [email protected] and [email protected] (or 5.13.0)
Steps to Reproduce
Environment
Framework version: [email protected]
Map library: [email protected]
Browser: Chrome 142.0.7444.176
OS: Windows 11 25H2 26200.7171
Logs
No response
- 主要言語
- TypeScript
- スター
- 8.5k
- フォーク
- 1.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
visgl/react-map-gl のほかの issue
-
DEFAULT_SETTINGS.maxBounds in @vis.gl/react-maplibre has 360° longitude span, triggers maplibre-gl-js#6148 crash via _updateSettings fallback再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
visgl/react-map-gl#2591 · コメント 2 件 ·
-
[Bug] Mapbox geocoder example crashes: "i is not a function"対応中かも @yuiseki が 20 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
visgl/react-map-gl#2628 ·
-
[Bug] Scroll zoom stops short of maxZoom in controlled mode with MapLibre対応中かも @sviat-barbutsa が 33 日前に担当しました。 オープンbug
難易度 3/5 半日 初心者へのやさしさ 74/100
visgl/react-map-gl#2626 ·
-
[Bug] reuseMaps: Mapbox.reuse() infinite-loops (tab freeze) when the recycled map's container is the mount container対応中かも @mikeyfarina が 82 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
visgl/react-map-gl#2613 ·
-
feature
難易度 5/5 1週間以上 初心者へのやさしさ 42/100
visgl/react-map-gl#2603 · リアクション 1 件 ·
visgl/react-map-gl の issue をすべて見る
似ている issue
-
accessibility area:ci ci-test level:low priority:high type:test
難易度 2/5 1〜3時間 初心者へのやさしさ 71/100
skytuhua-org/Gen-V1#3132 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
drmrd/vernacular#1238 ·
メンテナーはふだん 1 日以内に返信
-
question
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
enhancement migration-prioritized
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Hudson-Pufferfish/local-party-console#136 ·
メンテナーはふだん 1 日以内に返信
-
priority:medium
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信