Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue-tsc throws "Search string not found" error during type-checking #5041

Closed
stephenWanjala opened this issue Dec 11, 2024 · 1 comment
Closed

Comments

@stephenWanjala
Copy link

Vue - Official extension or vue-tsc version

vue-tsc version: 2.1.10

VSCode version

Not applicable (not using VSCode for this issue).

Vue version

vue: 3.5.13

TypeScript version

vue: 3.5.13

System Info

System:
    OS: Linux 6.12 Archcraft
    CPU: (4) x64 Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
    Memory: 1.78 GB / 11.10 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.11.0 - ~/.nvm/versions/node/v22.11.0/bin/node
    Yarn: 1.22.22 - /usr/bin/yarn
    npm: 10.9.0 - ~/.nvm/versions/node/v22.11.0/bin/npm
    pnpm: 9.12.3 - /usr/bin/pnpm

package.json dependencies

{
  "dependencies": {
    "@vueuse/core": "^12.0.0",
    "axios": "^1.7.9",
    "bootstrap": "^5.3.3",
    "gh-pages": "^6.2.0",
    "gsap": "^3.12.5",
    "pinia": "^2.3.0",
    "vitest": "^2.1.8",
    "vue": "^3.5.13",
    "vue-router": "^4.5.0",
    "vuetify": "^3.7.5"
  },
  "devDependencies": {
    "@rushstack/eslint-patch": "^1.2.0",
    "@tsconfig/node18": "^18.2.4",
    "@types/node": "^22.10.1",
    "@vitejs/plugin-vue": "^5.2.1",
    "@vue/eslint-config-prettier": "^10.1.0",
    "@vue/eslint-config-typescript": "^14.1.4",
    "@vue/language-core": "^2.1.10",
    "@vue/tsconfig": "^0.7.0",
    "eslint": "^9.16.0",
    "eslint-plugin-vue": "^9.32.0",
    "npm-run-all": "^4.1.5",
    "prettier": "^3.4.2",
    "sass-embedded": "^1.82.0",
    "typescript": "^5.7.2",
    "vite": "^6.0.3",
    "vue-tsc": "^2.1.10"
  }
}

Steps to reproduce

  1. Set up a Vue 3 project using the above package.json dependencies.
  2. Add a tsconfig.app.json file:
{
  "extends": "@vue/tsconfig/tsconfig.dom.json",
  "include": ["env.d.ts", "src/**/*", "src/**/*.vue"],
  "exclude": ["src/**/__tests__/*"],
  "compilerOptions": {
    "composite": false,
    "baseUrl": ".",
    "paths": {
      "@/*": ["./src/*"]
    }
  }
}
  1. Run the type-checking script:
vue-tsc --noEmit -p tsconfig.app.json --composite false

What is expected?

vue-tsc completes type-checking successfully without errors.

What is actually happening?

/home/wanjala/WebstormProjects/stephenWanjala.github/node_modules/vue-tsc/index.js:34
throw err;
^
Search string not found: "/supportedTSExtensions = .*(?=;)/"
Node.js v23.1.0

Link to minimal reproduction

https://github.com/stephenWanjala/stephenWanjala.github.io.git

Any additional comments?

Replacing the vue-tsc with tsc works fine or using a typescript version before the latest version 5.7.2 works

@stephenWanjala
Copy link
Author

fixed by #5020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant