Could not find a declaration file for module '@turf/turf'.
The-Lone-Druid opened this issue · comments
Could not find a declaration file for module '@turf/turf'. 'C:/Users/..../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 'c:/Users/..../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)
I'm facing this issue in React Typescript, Vite as a Build Tool.
- "@turf/turf": "^6.5.0"
- NA
-
import * as turf from '@turf/turf';.
- This issue isn't reported anywhere before.
Hi @The-Lone-Druid. Thanks for reporting this. The problem should be fixed in the v7 alpha. Can you please try that and let us know if if fixes the issue?
Try 7.0.0-alpha.114
I had the exact issue, upgrading to 7.0.0-alpha.114 works for me
import from '@types/geojson';it works for me.