Unknown compiler option 'erasableSyntaxOnly' #20232
Replies: 3 comments 1 reply
-
The error is likely due to editor setup. For example, on vscode, you can check https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-the-workspace-version-of-typescript |
Beta Was this translation helpful? Give feedback.
-
Configura tu espacio de trabajo y dile a VSCode que use la versión de TypeScript definida localmente en tu proyecto. |
Beta Was this translation helpful? Give feedback.
-
The settings.json file did not work for me. What did work was this from the original link by @hi-ogawa
Then I selected the typescript version of 5.8.1 in my node_modules |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I used the command
npm create vite@latest
to fresh setup for the repository.But it gives me error in
tsconfig.app.json
andtsconfig.node.json
.Error:
Unknown compiler option 'erasableSyntaxOnly'.
I searched for the error and came to know that it make sure you have typescript version 5.8 or later to use this option. I package.json its 5.8.3 added as dev dependencies
Reproduction
Not required
Steps to reproduce
Steps to reproduce
npm install
System Info
Used Package Manager
npm
Logs
No response
Validations
Beta Was this translation helpful? Give feedback.
All reactions