Skip to content
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

how to relative tsconfig when import a module that belongs to exports #421

Open
buquan opened this issue Jul 25, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@buquan
Copy link

buquan commented Jul 25, 2024

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

@buquan buquan added the bug Something isn't working label Jul 25, 2024
@prisis
Copy link

prisis commented Aug 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants