-
Couldn't load subscription status.
- Fork 5
Open
Labels
bugSomething isn't workingSomething isn't working
Description
when using this library with ReactJS project using a typescript it failed when running build .
yarn build
the output :
$ tsc -b && vite build
node_modules/mapbox-pmtiles/src/index.ts:2:20 - error TS1484: 'PromoteIdSpecification' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
2 import mapboxgl, { PromoteIdSpecification, VectorTileSource } from "mapbox-gl";
~~~~~~~~~~~~~~~~~~~~~~
node_modules/mapbox-pmtiles/src/index.ts:317:21 - error TS6133: 'specVersion' is declared but its value is never read.
317 const { specVersion, clustered, tileType, minZoom, maxZoom, minLon, minLat, maxLon, maxLat, centerZoom, centerLon, centerLat } = header
~~~~~~~~~~~
node_modules/mapbox-pmtiles/src/index.ts:317:34 - error TS6133: 'clustered' is declared but its value is never read.
317 const { specVersion, clustered, tileType, minZoom, maxZoom, minLon, minLat, maxLon, maxLat, centerZoom, centerLon, centerLat } = header
~~~~~~~~~
node_modules/mapbox-pmtiles/src/index.ts:317:105 - error TS6133: 'centerZoom' is declared but its value is never read.
317 const { specVersion, clustered, tileType, minZoom, maxZoom, minLon, minLat, maxLon, maxLat, centerZoom, centerLon, centerLat } = header
~~~~~~~~~~
node_modules/mapbox-pmtiles/src/index.ts:317:117 - error TS6133: 'centerLon' is declared but its value is never read.
317 const { specVersion, clustered, tileType, minZoom, maxZoom, minLon, minLat, maxLon, maxLat, centerZoom, centerLon, centerLat } = header
~~~~~~~~~
node_modules/mapbox-pmtiles/src/index.ts:317:128 - error TS6133: 'centerLat' is declared but its value is never read.
317 const { specVersion, clustered, tileType, minZoom, maxZoom, minLon, minLat, maxLon, maxLat, centerZoom, centerLon, centerLat } = header
~~~~~~~~~
node_modules/mapbox-pmtiles/src/index.ts:463:77 - error TS2532: Object is possibly 'undefined'.
463 tile.actor = this._tileWorkers[url] = this._tileWorkers[url] || this.dispatcher.getActor();
~~~~~~~~~~~~~~~
src/pmtile.ts:2:20 - error TS1484: 'PromoteIdSpecification' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.
2 import mapboxgl, { PromoteIdSpecification, VectorTileSource } from "mapbox-gl";
~~~~~~~~~~~~~~~~~~~~~~
src/pmtile.ts:317:21 - error TS6133: 'specVersion' is declared but its value is never read.
317 const { specVersion, clustered, tileType, minZoom, maxZoom, minLon, minLat, maxLon, maxLat, centerZoom, centerLon, centerLat } = header
~~~~~~~~~~~
src/pmtile.ts:317:34 - error TS6133: 'clustered' is declared but its value is never read.
317 const { specVersion, clustered, tileType, minZoom, maxZoom, minLon, minLat, maxLon, maxLat, centerZoom, centerLon, centerLat } = header
~~~~~~~~~
src/pmtile.ts:317:105 - error TS6133: 'centerZoom' is declared but its value is never read.
317 const { specVersion, clustered, tileType, minZoom, maxZoom, minLon, minLat, maxLon, maxLat, centerZoom, centerLon, centerLat } = header
~~~~~~~~~~
src/pmtile.ts:317:117 - error TS6133: 'centerLon' is declared but its value is never read.
317 const { specVersion, clustered, tileType, minZoom, maxZoom, minLon, minLat, maxLon, maxLat, centerZoom, centerLon, centerLat } = header
~~~~~~~~~
src/pmtile.ts:317:1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working