-
Notifications
You must be signed in to change notification settings - Fork 88
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
Invalid TS typing file extension #287
Comments
This is the cause of typescript 5 migration. It looks like package.json exports module is configured incorrectly. You can set resolvePackageJsonExports to false to use the old typescript system of module export resolution and wait for authors to fix this issue. |
@Waujito Setting 'resolvePackageJsonExports' to false isn't a real fix tho as that would disable |
fixed in |
It works, thank you! |
@fabis94 are you happy to close this issue should you confirm it is working in v6.2.0? |
This is when importing the package from a repo that uses the
nodenext
ornode16
TypeScriptmoduleResolution
algorithm. If the build file extension is.mjs
, then the typings file must be.d.mts
. Either that or you must specify the typings file explicitly in the exports map of your package.json.The text was updated successfully, but these errors were encountered: