protomaps / PMTiles

Cloud-optimized + compressed single-file tile archives for vector and raster maps

Home Page:https://protomaps.com/docs/pmtiles/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeScript fails to run? "./v2"

Terandium opened this issue · comments

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:

  • Ignite (Expo)
  • MapLibre GL JS
  • iOS Simulator (Don't think it matters, but I havent run it on Android)

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

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 ^^

Should be fixed by #376 , thanks for the repro case

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