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

Cannot import this package due to missing types from package.json#exports #73

Open
ebernerd opened this issue Mar 20, 2024 · 0 comments

Comments

@ebernerd
Copy link

In a fresh NextJS project (14.3.2, pages router), I received an error that stated that the TypeScript compiler "could find types", but the package.json file did not export the "types" correctly.

View screenshot of error image

From my research the exports field supports a types field which can point to the types/index.d.ts file. I have an attempt in #72 but I wasn't confident in my abilities regarding typing a pre-built library, so I closed the PR in favor of an issue. Happy to help bugtest if you happen to know what is needed here.

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

No branches or pull requests

1 participant