vuejs / language-tools

⚡ High-performance Vue language tooling based-on Volar.js
https://marketplace.visualstudio.com/items?itemName=Vue.volar
MIT License
5.86k stars 399 forks source link

Couldn't start client Volar - Document #7

Closed soulsam480 closed 4 years ago

soulsam480 commented 4 years ago

Hii, This is a great project. Vue 3 is good with Ts but it could be better. I installed this extension but it throws some errors.

Hope you'll look into these errors. Thank you.

johnsoncodehk commented 4 years ago

Will check it out! What is your operating system? It will be helpful if you can provide a reproducible project

soulsam480 commented 4 years ago

yeah sure.

OS: Windows 10 Home Vue: 3.0.0 Vue-router: 4.0.0-0 Vuex: 4.0.0-0 Vue-CLI: 4.x

johnsoncodehk commented 4 years ago

After many attempts I cannot reproduce the problem, I need more help...

  1. What is your VSCode version?
  2. Will the error still occur when you disable all other extensions?
  3. Can you reproduce the problem in this project? https://github.com/vuejs/vue-next-webpack-preview
soulsam480 commented 4 years ago
  1. Vs code details: Version: 1.50.1 (user setup) Commit: d2e414d9e4239a252d1ab117bd7067f125afd80a Date: 2020-10-13T15:06:15.712Z Electron: 9.2.1 Chrome: 83.0.4103.122 Node.js: 12.14.1 V8: 8.3.110.13-electron.0 OS: Windows_NT x64 10.0.18363

  2. No I haven't tested while all extensions disabled. Will check and let you know.

  3. I will try to reproduce the errors

Here is a screenshot of the errors I got in vscode Screenshot (556)

johnsoncodehk commented 4 years ago

This is where I think the problem may occur, but there is not enough information to check further: https://github.com/microsoft/TypeScript/blob/292b778204ad2ce071f12ab872243b7e404aad90/src/services/services.ts#L1216

soulsam480 commented 4 years ago

After many attempts I cannot reproduce the problem, I need more help...

  1. What is your VSCode version?
  2. Will the error still occur when you disable all other extensions?
  3. Can you reproduce the problem in this project? https://github.com/vuejs/vue-next-webpack-preview

Hey I just checked with all extensions disabled. But it didn't work and the same errors occurred.

johnsoncodehk commented 4 years ago

Thank you for your work~ please let me know if you tried point 3. In addition, do you use typescript plugin?

soulsam480 commented 4 years ago

Thank you for your work~ please let me know if you tried point 3. In addition, do you use typescript plugin?

Yes I use Vue cli-plugin-typescript

Here is the error from vscode output after volar crashes

internal/modules/cjs/loader.js:796 throw err; ^

Error: Cannot find module 'entities/lib/maps/entities.json' Require stack:

This error comes 5 times before volar stops working. I thought this was some problem with the environment i.e. WSL Ubuntu. But I tried this on windows 10 and this also throws error.

johnsoncodehk commented 4 years ago

This error comes 5 times before volar stops working. I thought this was some problem with the environment i.e. WSL Ubuntu. But I tried this on windows 10 and this also throws error.

This is a new bug in 0.14.5... It has been fixed in 0.14.6 I still can’t reproduce the error of host.useCaseSensitiveFileNames is not a function. I have pinned the issue. Please let me know if anyone has the same error or has more information.

johnsoncodehk commented 4 years ago

@soulsam480 I finally found the reason, please try 0.14.8 and let me know if it has been resolved.

soulsam480 commented 4 years ago

@johnsoncodehk hii I just tested it. It didn't crash. That awesome.

Is there any way to check that if its working or not?

An also should I disable vetur to see the features of volar in action?

johnsoncodehk commented 4 years ago

Yes, you need to turn off vetur and reload vscode, and your project needs to have tsconfig.json. You can click <template> to try to execute Convert to Pug, if it succeeds, it means volar is working.

soulsam480 commented 4 years ago

Sure Man. Thanks again for this amazing project and all those help. ✌🏼🤯