Open buquan opened 1 month ago
node 20 ts5+
https://stackblitz.com/edit/vitejs-vite-zbxug8?file=src%2Findex.ts,package.json,src%2Fadd.ts,src%2Fsub.ts,build.config.ts,tsconfig.json
ts error add is not a module when import * as addObj from './add';
add is not a module when
No response
Sorry, this has nothing to do with unbuild, please check https://stackoverflow.com/questions/32805559/typescript-es6-import-module-file-is-not-a-module-error
Environment
node 20 ts5+
Reproduction
https://stackblitz.com/edit/vitejs-vite-zbxug8?file=src%2Findex.ts,package.json,src%2Fadd.ts,src%2Fsub.ts,build.config.ts,tsconfig.json
Describe the bug
ts error
add is not a module when
import * as addObj from './add';Additional context
No response
Logs
No response