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
This is because the exports map refers the types condition for import to a non-existent index.d.mts file. I believe the types entry should refer to the same index.d.ts file as is used for CJS bundles, which should be compatible. When I apply this change manually my build succeeds.
Note: I am using 0.5.0, the latest version at time of writing.
The text was updated successfully, but these errors were encountered:
Thank you for addressing it! Unfortunately I've since had to abandon the effort to adopt bundler resolution due to some other compatibility issues (IIRC Jest with CJS modules didn't particularly like it), but given that 0.5.1 contains the exact change I patched in at the time this should work.
Thanks again and for maintaining this package in the first place! 🙏
When TypeScript's
bundler
module resolution mode is used (or the stricternode16
/nodenext
variants), would an error be reported:This is because the exports map refers the
types
condition forimport
to a non-existentindex.d.mts
file. I believe thetypes
entry should refer to the sameindex.d.ts
file as is used for CJS bundles, which should be compatible. When I apply this change manually my build succeeds.Note: I am using 0.5.0, the latest version at time of writing.
The text was updated successfully, but these errors were encountered: