-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Module not found - 'vscode-css-languageservice/lib/umd/data/browsers' #28
Comments
I manage to fix it by editing directly the file in the package that is giving an issue.
from: I just rename the "browser" to "webCustomData". Do you have any idea? Thanks |
No, can't reproduce. |
Ok. I guess I'll leave it for now. Thanks! |
i can confirm the same issue with version 1.1.7 |
Having the same issue, uninstalling all extensions and reinstalling just vetur still causes the issue. When I open a vue file and run |
@chemzqm Maybe you can take a look again? |
Don't know what happened with |
Had the same issue - worked for me. Looking forward to a fix! |
This is a See: vuejs/vetur#1730 Unfortunately, you will have to wait for the npm package to be updated. |
It seems that vue-language-server has been changed to See: https://github.com/vuejs/vetur/releases/tag/v0.24.0
|
As @yaegassy said, some upstream changes have replaced the old language server, Now we have to switch to the new package and so far my solution is:
$ yarn global add vls
"vetur.dev.vlsPath": "/home/<USER_NAME>/.config/yarn/global/node_modules/vls", Finally, I found that there are some deprecation warnings, but it works! My
|
Same problem here. I can confirm @StrayDragon worked. |
Hello! I just installed the extension but I'm getting issue. I'm not sure if this is related to the current extension but this is the output when I run
:CocCommand workspace.showOutput
Error: Cannot find module 'vscode-css-languageservice/lib/umd/data/browsers'
Require stack:
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:980:15)
at Function.Module._load (internal/modules/cjs/loader.js:862:27)
at Module.require (internal/modules/cjs/loader.js:1040:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object. (/home/USER/.config/coc/extensions/node_modules/coc-vetur/node_modules/vue-language-server/dist/modes/style/stylus/css-browser-data.js:7:17)
at Module._compile (internal/modules/cjs/loader.js:1151:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
at Module.load (internal/modules/cjs/loader.js:1000:32)
at Function.Module._load (internal/modules/cjs/loader.js:899:14)
at Module.require (internal/modules/cjs/loader.js:1040:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/USER/.config/coc/extensions/node_modules/coc-vetur/node_modules/vue-language-server/dist/modes/style/stylus/css-browser-data.js',
'/home/USER/.config/coc/extensions/node_modules/coc-vetur/node_modules/vue-language-server/dist/modes/style/stylus/completion-item.js',
'/home/USER/.config/coc/extensions/node_modules/coc-vetur/node_modules/vue-language-server/dist/modes/style/stylus/index.js',
'/home/USER/.config/coc/extensions/node_modules/coc-vetur/node_modules/vue-language-server/dist/embeddedSupport/languageModes.js',
'/home/USER/.config/coc/extensions/node_modules/coc-vetur/node_modules/vue-language-server/dist/services/vls.js',
'/home/USER/.config/coc/extensions/node_modules/coc-vetur/node_modules/vue-language-server/dist/vueServerMain.js'
]
The text was updated successfully, but these errors were encountered: