Open OlegBrony opened 2 months ago
Start a new pull request in StackBlitz Codeflow.
TypeScript does not give us an easy way to do this: https://github.com/microsoft/TypeScript/issues/40450 I guess it's possible to achieve this by writing a TypeScript plugin. But using a plugin has some UX issues too.
TypeScript does not give us an easy way to do this: microsoft/TypeScript#40450 I guess it's possible to achieve this by writing a TypeScript plugin. But using a plugin has some UX issues too.
so you say, that this is typescript related issue, not vite?
Yes. It cannot be solved by changing a code in this repository. A change to TypeScript or, making a TypeScript plugin is required.
Describe the bug
First, I feel like it should be a known issue, but I can't find it anywhere in issues or SO etc. but i refuse to believe I'm the only one who bring this app.
When I change import file I expect IDE to highlight the error - because the file does not exist. but instead there is no error about import. it reproduces with all files except ts, tsx. Reproduce: 1) go here - https://stackblitz.com/edit/vitejs-vite-gzxywq?file=src%2Fmain.ts 2) check 3 and 4 lines.
I think it's related to this file
/node_modules/vite/client.d.ts
. in there are declared modules with specific files. maybe it should be written differently? or is it just me?Reproduction
https://stackblitz.com/edit/vitejs-vite-gzxywq?file=src%2Fmain.ts
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations