protomaps / PMTiles

Cloud-optimized + compressed single-file tile archives for vector and raster maps
https://protomaps.com/docs/pmtiles/
BSD 3-Clause "New" or "Revised" License
2.12k stars 125 forks source link

TypeScript fails to run? "./v2" #375

Closed Terandium closed 8 months ago

Terandium commented 9 months ago

The index.ts file tries to import import v2 from "./v2"; But v2 doesn't exist, so it instantly panics and crashes..

image You see the v2 important, but v2 doesn't exist. image

image

Our tech stack is:

bdon commented 9 months ago

Can you post a runnable minimal example project so we can reproduce it and verify that a patch will fix it?

Terandium commented 9 months ago

Can you post a runnable minimal example project so we can reproduce it and verify that a patch will fix it?

https://github.com/Terandium/pmtiles-ignite-issue

It’s just a blank ignite project, and I imported PMTiles in app.tsx

As it crashes on the import.

Edit: I forgot to actually push the PMTiles import, fixed it ^^

bdon commented 8 months ago

Should be fixed by https://github.com/protomaps/PMTiles/pull/376 , thanks for the repro case

(package.json was missing files for if your build doesn't use the bundled module in dist/)