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

Running estimate ends in error: TypeError: Cannot read property '1' of undefined

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

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, node.js
領域
cli

調査の方向性

生成された config、recipe、JSONL ファイルを使って文書化されたワークフローを再現し、その後 src/estimate.js の 59 行目と @mapbox/tile-cover の stack trace を調査します。estimate パスと成功した sync パスを比較します。文書化された tileset 入力に対して mtsds --estimate がこの TypeError なしで完了すれば完了です。

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

説明

I'm following the documentation to create my first tileset.

I've successfully run: mtsds --config path-to-geojson and got the expected config, recipe and .jsonl files.

I get this error when running mtsds --estimate as documented:

Estimating job size... this could take a while depending on your max zoom
TypeError: Cannot read property '1' of undefined
    at lineCover (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/@mapbox/tile-cover/index.js:231:30)
    at polygonCover (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/@mapbox/tile-cover/index.js:154:9)
    at getTiles (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/@mapbox/tile-cover/index.js:79:9)
    at Proxy.exports.indexes (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/@mapbox/tile-cover/index.js:53:12)
    at DestroyableTransform.<anonymous> (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/src/estimate.js:59:27)
    at DestroyableTransform.emit (events.js:223:5)
    at DestroyableTransform.EventEmitter.emit (domain.js:475:20)
    at addChunk (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/readable-stream/lib/_stream_readable.js:291:12)
    at readableAddChunk (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/readable-stream/lib/_stream_readable.js:278:11)
    at DestroyableTransform.Readable.push (/Users/seanrennie/Development/HUMMINGBIRD/mts-data-sync/node_modules/readable-stream/lib/_stream_readable.js:245:10)

I'm happy to help debug further but not sure where to go from here?

If I run mtsds --sync it works as expected.

主要言語
JavaScript
スター
71
フォーク
15
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

mapbox/mts-data-sync のほかの issue

mapbox/mts-data-sync の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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