Can't set absolute paths to Vite Project
Hello
I was trying to make sure I could use either typescript
namespaces and use absolute file paths for import statements, as this how-to article suggests.
my tsconfig.json file is as follows:
Also, my vite.config.ts file is as follows:
However, if I try to use the absolute paths like the following:
For instance, the project is a react/tsx game catalogue. The mentioned files are already committed there.
The editor doesn't recognize it. For instance, I'm using Jetbrains Webstorm.
Has anyone here ever have been through this situation?1 Reply
For those who might encounter the same issue as me, you must do the followng:
Add the same
"compilerOptions" configuration of tsconfig.json to tsconfig.app.json