Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find a declaration file for module '@turf/turf'. #2587

Closed
4 tasks done
The-Lone-Druid opened this issue Mar 12, 2024 · 3 comments
Closed
4 tasks done

Could not find a declaration file for module '@turf/turf'. #2587

The-Lone-Druid opened this issue Mar 12, 2024 · 3 comments
Labels
bundling Anything related to issues with bundling

Comments

@The-Lone-Druid
Copy link

The-Lone-Druid commented Mar 12, 2024

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.
@smallsaucepan
Copy link
Member

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

@smallsaucepan smallsaucepan added the bundling Anything related to issues with bundling label Mar 13, 2024
@jamesrogers93
Copy link

I had the exact issue, upgrading to 7.0.0-alpha.114 works for me

@wxyer
Copy link

wxyer commented May 7, 2024

import from '@types/geojson';it works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bundling Anything related to issues with bundling
Projects
None yet
Development

No branches or pull requests

4 participants