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

The ts type prompt in all .vue files is incorrect #4039

Closed
kingshuaishuai opened this issue Mar 7, 2024 · 6 comments
Closed

The ts type prompt in all .vue files is incorrect #4039

kingshuaishuai opened this issue Mar 7, 2024 · 6 comments

Comments

@kingshuaishuai
Copy link

The ts type prompt in all.vue files is incorrect, whether in vue2.7 or vue3
image
image

@so1ve
Copy link
Member

so1ve commented Mar 7, 2024

What's your ts and volar version?

@Roman-Lo
Copy link

Roman-Lo commented Mar 8, 2024

What's your ts and volar version?

The same problem happened in my workspace too.

vue.volar: v2.0.6
typescript: 5.3.3
vue: 3.4.21

And here is my package.json:

{
  "name": "workspace",
  "version": "0.0.0",
  "scripts": {},
  "private": true,
  "devDependencies": {
    "@nx/eslint": "18.0.5",
    "@nx/eslint-plugin": "18.0.5",
    "@nx/js": "18.0.5",
    "@nx/vite": "18.0.5",
    "@nx/vue": "^18.0.5",
    "@nx/web": "18.0.5",
    "@nx/workspace": "18.0.5",
    "@swc-node/register": "~1.8.0",
    "@swc/core": "~1.3.85",
    "@swc/helpers": "~0.5.2",
    "@types/node": "20.11.1",
    "@typescript-eslint/eslint-plugin": "^6.13.2",
    "@typescript-eslint/parser": "^6.13.2",
    "@vitejs/plugin-vue": "^4.5.0",
    "@vitest/coverage-v8": "^1.0.4",
    "@vitest/ui": "^1.3.1",
    "@vue/eslint-config-prettier": "7.1.0",
    "@vue/eslint-config-typescript": "^11.0.3",
    "@vue/test-utils": "^2.4.1",
    "eslint": "~8.48.0",
    "eslint-config-prettier": "^9.0.0",
    "eslint-plugin-vue": "^9.16.1",
    "jsdom": "~22.1.0",
    "nx": "18.0.5",
    "prettier": "^2.6.2",
    "sass": "^1.71.1",
    "typescript": "~5.3.2",
    "verdaccio": "^5.0.4",
    "vite": "~5.0.0",
    "vite-plugin-dts": "~2.3.0",
    "vitest": "^1.3.1",
    "vue-tsc": "^1.8.8"
  },
  "volta": {
    "node": "20.11.1"
  },
  "nx": {
    "includedScripts": []
  },
  "dependencies": {
    "date-fns": "^2.30.0",
    "axios": "^1.6.7",
    "consola": "^3.2.3",
    "vue": "^3.3.4",
    "vue-router": "^4.2.4"
  }
}

@RiESAEX
Copy link

RiESAEX commented Mar 8, 2024

not only type prompt also prompt for import path
image

@so1ve I'm glad to try to fix this issue, is there any guidance to debug the language server or the extension?

@RiESAEX
Copy link

RiESAEX commented Mar 8, 2024

I found there is a conflict with Extension Nx Console. After disable it, prompt works well.

@kingshuaishuai
Copy link
Author

I found there is a conflict with Extension Nx Console. After disable it, prompt works well.

thank you, that's it!

@so1ve
Copy link
Member

so1ve commented Apr 8, 2024

Fixed by #4119

@so1ve so1ve closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants