You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Staring new project with latest turf & TypeScript (esbuild as bundler) is throwing this error in VSCode
import{polygon}from'@turf/turf';
Could not find a declaration file for module '@turf/turf'. 'node_modules/@turf/turf/dist/es/index.js' implicitly has an 'any' type.
There are types at '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)
The version of Turf you are using, and any other relevant versions.
@wmonecke there are a few problems with the exports in 6.5.0. Please take a look at #2394 and if that looks similar to what you are experiencing, we have recently overhauled our exports, which will hopefully address that issue as well. Those changes won't be available until alpha.3 though, with the plan being to release that in coming days.
Staring new project with latest turf & TypeScript (esbuild as bundler) is throwing this error in VSCode
6.5.0
0.19.9
5.3.3
tsconfig.json
Related: microsoft/TypeScript#52363
The text was updated successfully, but these errors were encountered: