Export of enum from a library gives The requested module '...' does not provide an export named 'default'
#12837
Closed
7 tasks done
Labels
The requested module '...' does not provide an export named 'default'
#12837
Describe the bug
Trying to use a typescript export in my library gives me:
The code in question is:
I created a minimal repo from basic typescript vite example that observes the same issue.
I can see that the JS file builds correctly, but for some reason the export is trying to export default instead of targeted export.
So the expectation would be that I can just export my library written in typescript without any problems.
While similar to #12764 it is not a barrel export, just raw export
Reproduction
https:/rf-vivanovs/vitejs-export-bug
Steps to reproduce
npm run dev
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: