Vetur: VTI Error: Cannot find module

Created on 25 Feb 2020  路  7Comments  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: Linux
  • Node: 12.14.0
  • vti: 0.0.2

Problem

I get an error when I run vti.
Error: Cannot find module 'vscode-css-languageservice/lib/umd/data/browsers'

Reproducible Case

reproduction repository: https://github.com/odan-sandbox/vti-error-reproduction

bug vti

Most helpful comment

All 7 comments

try this fix #1730

Tried this fix, but it isn't working for me. I get almost the same error Error: Cannot find module 'vscode-css-languageservice/lib/umd/data/webCustomData'

Thanks!

I checked a version of vscode-css-languageservice. As a result of the version is 4.1.0.

$ yarn why vscode-css-languageservice
=> Found "[email protected]"
info Reasons this module exists
   - "vti#vue-language-server" depends on it
   - Hoisted from "vti#vue-language-server#vscode-css-languageservice"

When I fixed to 4.0.2 a version of vscode-css-languageservice, vti command was succeeded.
https://github.com/odan-sandbox/vti-error-reproduction/pull/1/files

I'm having this issue too.

When is the next release planned to include this fix?

@weilbith I'm no longer having this issue myself so I believe it's been fixed.

Hmm I still have. So could only solve it by manually downgrading the vscode... dependency locally.
The linked fix was merged to master in march, while the latest npm release was 4 months ago.

Was this page helpful?
0 / 5 - 0 ratings