git clone git@github.com:romanslonov/vite-vue-webstorm-issue.git
cd vite-vue-webstorm-issue
pnpm i
pnpm type-check
What is expected?
No errors by running vue-tsc --build --force.
What is actually happening?
> vue-tsc --build --force
src/App.vue:5:18 - error TS2550: Property 'replaceAll' does not exist on type '"//"'. Do you need to change your target library? Try changing the 'lib' compiler option to 'es2021' or later.
5 const str = '//'.replaceAll('/', '*')
I started new vue project using npm create vite@latest and faced some issues with vue-tsc. Initially I thought it bug with vue-language-service but it has same error running vue-tsc.
Vue - Official extension or vue-tsc version
2.1.10
VSCode version
1.95.3
Vue version
3.5.12
TypeScript version
5.6.3
System Info
package.json dependencies
Steps to reproduce
What is expected?
No errors by running
vue-tsc --build --force
.What is actually happening?
Link to minimal reproduction
https://github.com/romanslonov/vite-vue-webstorm-issue
Any additional comments?
Hello everyone,
I started new vue project using
npm create vite@latest
and faced some issues withvue-tsc
. Initially I thought it bug with vue-language-service but it has same error running vue-tsc.