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
When we have any enum that its name starts with the word T:
export enum THEME {
LIGHT
}
And use it:
import { THEME } from `~`
console.log(THEME.LIGHT)
This would result in an error that something unexpectedly re-writes the import path towards tdesign-vue-next libary.
How to reproduce it:
Hit the reproduction link below
Run the project
Check your console and keep cleanning it untill you see an Uncaught SyntaxError:
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/tdesign-vue-next.js?v=e1b92d83' does not provide an export named 'HEME2' (at enum.ts:1:10)
Describe the bug
Prerequisites: unplugin-vue-components && unplugin-auto-import && tdesign-vue-next
When we have any enum that its name starts with the word T:
And use it:
This would result in an error that something unexpectedly re-writes the import path towards tdesign-vue-next libary.
How to reproduce it:
Reproduction
https://stackblitz.com/edit/vitejs-vite-rbldp3?file=src%2Fenum.ts,src%2FApp.vue,package.json,src%2Fmain.ts&terminal=dev
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: