You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
The text was updated successfully, but these errors were encountered:
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
From my research the
exports
field supports atypes
field which can point to thetypes/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.The text was updated successfully, but these errors were encountered: