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
If my package.json has "type": "module" and my dts plugin config has rollupTypes: true, I get the error Internal Error: getResolvedModule() could not resolve module name "./src/main".
I believe this is because module packages must use file extensions. If I comment out the line that removes .d.ts from the generated imports, it builds as expected.
Describe the bug
If my package.json has
"type": "module"
and my dts plugin config hasrollupTypes: true
, I get the errorInternal Error: getResolvedModule() could not resolve module name "./src/main"
.I believe this is because module packages must use file extensions. If I comment out the line that removes
.d.ts
from the generated imports, it builds as expected.Reproduction
https://stackblitz.com/edit/vitejs-vite-hq4tq1
Steps to reproduce
npm run build
System Info
Validations
The text was updated successfully, but these errors were encountered: