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

Crush after update typescript to 5.5 #4484

Closed
mrquokka opened this issue Jun 21, 2024 · 19 comments
Closed

Crush after update typescript to 5.5 #4484

mrquokka opened this issue Jun 21, 2024 · 19 comments
Labels
invalid This doesn't seem right

Comments

@mrquokka
Copy link

Vue - Official extension or vue-tsc version

vue-tsc

VSCode version

1.90.1

Vue version

3.4.29

TypeScript version

5.5

System Info

No response

Steps to reproduce

Just upgrade to typescript 5.5

Link to minimal reproduction

No response

Any additional comments?

npm run build

npm-project-beta@6.4.0-dev1 build
vue-tsc && vite build

.../node_modules/vue-tsc/bin/vue-tsc.js:68
throw err;
^
Search string not found: "for (const existingRoot of buildInfoVersionMap.roots) {"
(Use node --trace-uncaught ... to show where the exception was thrown)

Node.js v20.5.1

@fit2-zhao
Copy link

Me too, same question.

[INFO] Search string not found: "for (const existingRoot of buildInfoVersionMap.roots) {"
[INFO] (Use node --trace-uncaught ... to show where the exception was thrown)
[INFO]
[INFO] Node.js v20.8.1

@StreakingMan
Copy link

Same problem...typescirpt 5.4 works but 5.5 not work

@daniluk4000
Copy link
Contributor

@johnsoncodehk

@johnsoncodehk
Copy link
Member

This is v1 error message, please make sure update vue-tsc to v2.

@johnsoncodehk johnsoncodehk closed this as not planned Won't fix, can't repro, duplicate, stale Jun 21, 2024
@johnsoncodehk johnsoncodehk added the invalid This doesn't seem right label Jun 21, 2024
@daniluk4000
Copy link
Contributor

daniluk4000 commented Jun 21, 2024

This is v1 error message, please make sure update vue-tsc to v2.

Due to fi3ework/vite-plugin-checker#306 we still can't update :(

And now it will also block TS update...

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Jun 21, 2024

@daniluk4000 Please track for fi3ework/vite-plugin-checker#327.

CoreNion added a commit to CoreNion/cp-dashboard that referenced this issue Jun 27, 2024
関連のIssue:
fi3ework/vite-plugin-checker#306 (comment)
vuejs/language-tools#4484

一時的な回避案で、正式な修正は`vite-plugin-checker`のvue-tsc v2.x対応待ち
fi3ework/vite-plugin-checker#327
daleweaver777 added a commit to daleweaver777/breeze that referenced this issue Jul 2, 2024
vue-tsc v1 crashes with typescript v5.5 and newer. Upgrade to vue-tsc v2 to fix.

vuejs/language-tools#4484
taylorotwell pushed a commit to laravel/breeze that referenced this issue Jul 2, 2024
vue-tsc v1 crashes with typescript v5.5 and newer. Upgrade to vue-tsc v2 to fix.

vuejs/language-tools#4484
@jaxenvisuals
Copy link

This is v1 error message, please make sure update vue-tsc to v2.

Worked for me

@santokhan
Copy link

Same here.

@santokhan
Copy link

This is v1 error message, please make sure update vue-tsc to v2.

It works for me. But it requires to change the version manually.
Thank you johnsoncodehk

@wangliangxin
Copy link

This is v1 error message, please make sure update vue-tsc to v2.

It works for me

@philharmonie
Copy link

This is v1 error message, please make sure update vue-tsc to v2.

Not working for me:

cat package.json
{
    "private": true,
    "type": "module",
    "scripts": {
        "build": "vue-tsc && vite build",
        "dev": "vite",
        "lint": "eslint resources/js --ext .js,.ts,.vue --ignore-path .gitignore --fix"
    },
    "devDependencies": {
        "@inertiajs/vue3": "^1.0.0",
        "@rushstack/eslint-patch": "^1.8.0",
        "@tailwindcss/forms": "^0.5.3",
        "@vitejs/plugin-vue": "^5.0.0",
        "@vue/eslint-config-prettier": "^9.0.0",
        "@vue/eslint-config-typescript": "^13.0.0",
        "autoprefixer": "^10.4.12",
        "axios": "^1.7.4",
        "concurrently": "^9.0.1",
        "eslint": "^8.57.0",
        "eslint-plugin-vue": "^9.23.0",
        "laravel-vite-plugin": "^1.0",
        "postcss": "^8.4.31",
        "prettier": "^3.3.0",
        "prettier-plugin-organize-imports": "^4.0.0",
        "prettier-plugin-tailwindcss": "^0.6.5",
        "tailwindcss": "^3.2.1",
        "typescript": "^5.5.3",
        "vite": "^5.0",
        "vue": "^3.4.0",
        "vue-tsc": "^2.1.10"
    }
}
bun run build
$ vue-tsc && vite build

/Users/philharmonie/dev/immo/node_modules/vue-tsc/index.js:34
            throw err;
            ^
Search string not found: "/supportedTSExtensions = .*(?=;)/"
(Use `node --trace-uncaught ...` to show where the exception was thrown)

Node.js v22.11.0
error: script "build" exited with code 1 (SIGHUP)

@wallyson-ruan-gilead
Copy link

wallyson-ruan-gilead commented Nov 26, 2024

      "devDependencies": {
        "@eslint/compat": "^1.2.3",
        "@eslint/js": "^9.15.0",
        "@playwright/test": "^1.49.0",
        "@rushstack/eslint-patch": "^1.10.4",
        "@storybook/addon-essentials": "^8.4.5",
        "@storybook/addon-interactions": "^8.4.5",
        "@storybook/addon-links": "^8.4.5",
        "@storybook/blocks": "^8.4.5",
        "@storybook/test": "^8.4.5",
        "@storybook/vue3": "^8.4.5",
        "@storybook/vue3-vite": "^8.4.5",
        "@stryker-mutator/vitest-runner": "^8.6.0",
        "@tsconfig/node20": "^20.1.4",
        "@types/jsdom": "^21.1.7",
        "@types/node": "^22.10.0",
        "@vitejs/plugin-vue": "^5.2.1",
        "@vitest/coverage-v8": "^2.1.6",
        "@vue/eslint-config-prettier": "^10.1.0",
        "@vue/eslint-config-typescript": "^14.1.4",
        "@vue/test-utils": "^2.4.6",
        "@vue/tsconfig": "^0.6.0",
        "eslint": "^9.15.0",
        "eslint-plugin-import": "^2.31.0",
        "eslint-plugin-no-snapshot-testing": "^1.0.61",
        "eslint-plugin-storybook": "^0.11.1",
        "eslint-plugin-vue": "^9.31.0",
        "jsdom": "^25.0.1",
        "npm-run-all": "^4.1.5",
        "plop": "^4.0.1",
        "prettier": "^3.4.0",
        "sass": "^1.81.0",
        "storybook": "^8.4.5",
        "typescript": "^5.7.2",
        "vite": "^5.4.11",
        "vite-plugin-vuetify": "^2.0.4",
        "vitest": "^2.1.6",
        "vue-tsc": "^2.1.10"
      }
> vue-tsc --noEmit -p tsconfig.vitest.json --composite false


/.../app/frontend/node_modules/vue-tsc/index.js:34
            throw err;
            ^
Search string not found: "/supportedTSExtensions = .*(?=;)/"
(Use `node --trace-uncaught ...` to show where the exception was thrown)

Node.js v22.7.0
ERROR: "type-check" exited with 1.
make: *** [ci-ui] Error 1

Not working for me

Update: Downgrading my Typescript to ˆ5.6.3 fixed it

@stephanestermann
Copy link

stephanestermann commented Nov 27, 2024

Same here:
"vue-tsc": "^2.1.10" not work with "typescript": "~5.7.2",
typescript 5.6.3 solve the problem
image

@titou10titou10
Copy link

same error for me

"devDependencies": {
  "@babel/types": "^7.26.0",
  "@eslint/eslintrc": "^3.2.0",
  "@eslint/js": "^9.8.0",
  "@types/luxon": "^3.4.2",
  "@types/node": "^22.10.1",
  "@types/vuelidate": "^0.7.22",
  "@typescript-eslint/eslint-plugin": "^8.16.0",
  "@typescript-eslint/parser": "^8.16.0",
  "@vitejs/plugin-vue": "^5.2.1",
  "autoprefixer": "^10.4.20",
  "eslint": "^9.14.0",
  "eslint-config-prettier": "^9.1.0",
  "eslint-plugin-html": "^8.1.2",
  "eslint-plugin-prettier": "^5.2.1",
  "eslint-plugin-vue": "^9.31.0",
  "path": "^0.12.7",
  "postcss": "^8.4.47",
  "prettier": "^3.4.1",
  "tailwindcss": "^3.4.15",
  "typescript": "~5.7.2",
  "vite": "^6.0.1",
  "vue-tsc": "^2.1.10"
}

Downgrade typescript to 5.6.3 works:

"typescript": "~5.6.3",

Error:

node_modules\vue-tsc\index.js:34
          throw err;
          ^
Search string not found: "/supportedTSExtensions = .*(?=;)/"
(Use `node --trace-uncaught ...` to show where the exception was thrown)
Node.js v20.17.0

@MartinsOnuoha
Copy link

Yes downgrading to typescript 5.6.3 worked for me too.

npm i --save-dev typescript@~5.6.3

@toniengelhardt
Copy link

Same issue with typescript 5.7.2, with 5.6.3 it works.

marle3003 added a commit to marle3003/mokapi that referenced this issue Dec 2, 2024
pakb added a commit to geoadmin/web-mapviewer that referenced this issue Dec 3, 2024
block typescript update to v5.6.3, going further is not compatible with vue-tsc at the moment (see vuejs/language-tools#4484 )

issue with flickering label in Cesium has been fixed with latest release, we can go back to using the latest version in our dependecies
@zemkogabor
Copy link

Same issue with typescript 5.7.2, with 5.6.3 another error (vue-tsc 2.1.10):

yarn run v1.22.22
$ vue-tsc --build --verbose
[3:19:18 PM] Projects in this build: 
    * tsconfig.node.json
    * tsconfig.app.json
    * tsconfig.json

[3:19:18 PM] Project 'tsconfig.node.json' is out of date because output file 'node_modules/.tmp/tsconfig.node.tsbuildinfo' does not exist

[3:19:18 PM] Building project '/app/tsconfig.node.json'...

[3:19:19 PM] Project 'tsconfig.app.json' is out of date because output file 'node_modules/.tmp/tsconfig.app.tsbuildinfo' does not exist

[3:19:19 PM] Building project '/app/tsconfig.app.json'...

/app/node_modules/vue-tsc/index.js:34
            throw err;
            ^

Error: Debug Failure.
    at visitEachChildOfIndexSignatureDeclaration (/app/node_modules/typescript/lib/tsc.js:88839:13)
    at visitEachChild (/app/node_modules/typescript/lib/tsc.js:88695:33)
    at visitEachChild2 (/app/node_modules/typescript/lib/tsc.js:52363:18)
    at visitExistingNodeTreeSymbolsWorker (/app/node_modules/typescript/lib/tsc.js:52251:25)
    at visitExistingNodeTreeSymbols (/app/node_modules/typescript/lib/tsc.js:51943:24)
    at visitArrayWorker (/app/node_modules/typescript/lib/tsc.js:88509:49)
    at visitNodes2 (/app/node_modules/typescript/lib/tsc.js:88480:19)
    at visitNodesWithoutCopyingPositions (/app/node_modules/typescript/lib/tsc.js:52372:24)
    at visitEachChildOfTypeLiteralNode (/app/node_modules/typescript/lib/tsc.js:88885:7)
    at visitEachChild (/app/node_modules/typescript/lib/tsc.js:88695:33)

Node.js v22.11.0

@silverwind
Copy link

Yep, broken with typescript 5.7:

node_modules/vue-tsc/index.js:34
            throw err;
            ^
Search string not found: "/supportedTSExtensions = .*(?=;)/"

Imho it's time to upstream the module into tsc and deprecate vue-tsc.

@sinedied
Copy link

Could this issue be reopened? as it occurs again with latest typescript version

pakb added a commit to geoadmin/web-mapviewer that referenced this issue Dec 17, 2024
block typescript update to v5.6.3, going further is not compatible with vue-tsc at the moment (see vuejs/language-tools#4484 )

issue with flickering label in Cesium has been fixed with latest release, we can go back to using the latest version in our dependecies
pakb added a commit to geoadmin/web-mapviewer that referenced this issue Dec 17, 2024
block typescript update to v5.6.3, going further is not compatible with vue-tsc at the moment (see vuejs/language-tools#4484 )

issue with flickering label in Cesium has been fixed with latest release, we can go back to using the latest version in our dependecies
ndelangen added a commit to storybookjs/storybook that referenced this issue Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests