This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Typescript module resolution problem when importing from library's subpath without extension #18288
Closed
7 tasks done
Labels
Describe the bug
The application has a default Vite - ts+react template configuration. I try to reference modules from my custom library which has in package.json
In the application I try to import the modules:
The import without extension errors out.
If in tsconfig I change
moduleResolution: "node"
it doesn't error out.Runtime works fine (in the example it does not work cause it needs additional setup in the code, but in my production it works fine in runtime).
Reproduction
https://github.com/croraf/typescript-import-issue
Steps to reproduce
No response
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: