Turfjs / turf

A modular geospatial engine written in JavaScript and TypeScript

Home Page:https://turfjs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug report]: ts declaration broken

AkaraChen opened this issue · comments

package.json config is broken when come with typescript@5 compilerOptions.moduleResolution === "bundler"

Could not find a declaration file for module '@turf/turf'. 'frontend/node_modules/.pnpm/@turf+turf@6.5.0/node_modules/@turf/turf/dist/es/index.js' implicitly has an 'any' type.
  There are types at 'frontend/node_modules/@turf/turf/index.d.ts', but this result could not be resolved when respecting package.json "exports". The '@turf/turf' library may need to update its package.json or typings.ts(7016)

Can be easily fixed by adding:

image

I'm having this problem with the same version.

I'm having this problem with the same version.

already fixed in v7 alpha, waiting it release in stable version