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

[Bug report]: ts declaration broken #2586

Closed
AkaraChen opened this issue Mar 7, 2024 · 2 comments
Closed

[Bug report]: ts declaration broken #2586

AkaraChen opened this issue Mar 7, 2024 · 2 comments

Comments

@AkaraChen
Copy link

AkaraChen commented Mar 7, 2024

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

@StephenSHorton
Copy link

I'm having this problem with the same version.

@AkaraChen
Copy link
Author

AkaraChen commented Mar 8, 2024

I'm having this problem with the same version.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants