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

TypeScript type definitions don't work in ESM projects #72

Closed
andrew0 opened this issue Nov 6, 2023 · 1 comment · Fixed by #73
Closed

TypeScript type definitions don't work in ESM projects #72

andrew0 opened this issue Nov 6, 2023 · 1 comment · Fixed by #73

Comments

@andrew0
Copy link
Contributor

andrew0 commented Nov 6, 2023

When I try to import gqtx in a TypeScript project with the moduleResolution option set to nodenext, TypeScript can't find the correct type definitions: https://stackblitz.com/edit/typescript-dfnpmb?file=index.ts

image

I think this is because the package.json file for this library has "type": "module", but the TypeScript definition files use extensionless imports.

@sikanhe
Copy link
Owner

sikanhe commented Dec 5, 2023

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

Successfully merging a pull request may close this issue.

2 participants