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

Cannot run & debug Vetur "Activating extension 'octref.vetur' failed: Cannot destructure property 'ANY' of 'je' as it is undefined.." #3277

Open
4 tasks done
douglasg14b opened this issue Dec 15, 2021 · 1 comment
Labels

Comments

@douglasg14b
Copy link

douglasg14b commented Dec 15, 2021

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

I'm trying to debug #3113 , but cannot seem to get the dev environment to work for Vetur.

Info

  • Platform: Window s10
  • Vetur version: N/A, pulled from master
  • VS Code version: 1.63.0

Problem

"Activating extension 'octref.vetur' failed: Cannot destructure property 'ANY' of 'je' as it is undefined.."

image

There is no Vue Language Server output here.

In Log (Window) there is the following error which may be related?

[2021-12-14 16:46:32.877] [renderer9] [error] [Extension Host] (node:15572) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use Code --trace-deprecation ... to show where the warning was created)

If I turn on exception breakpoints I get the following:

Exception has occurred: TypeError: Cannot assign to read only property 'name' of function 'function n(e,n,o,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let ......)}'

image

Reproducible Case

  1. Follow the steps here: https://github.com/vuejs/vetur/wiki/Developing-Language-Server-Features
  2. When at the point where debugging the all profile, and another vscode windows opens
  3. Open a .vue file, and the above error occurs
@phil294
Copy link
Contributor

phil294 commented Mar 5, 2022

Did you do a yarn upgrade after cloning? This breaks the dev process. It's probably this bug to be blamed. Can you try if setting dependency "@rollup/plugin-commonjs" to "^22.0.0-13" works?

The { ANY } destructuring is probably in the const {ANY} = Comparator in /node_modules/vscode-languageclient/node_modules/semver/ranges/outside.js (?)

(I am not a Vetur maintainer)

phil294 added a commit to phil294/coffeesense that referenced this issue Mar 5, 2022
set @rollup/plugin-commonjs to beta because (probably) the same thing as vuejs/vetur#3277
@yoyo930021 yoyo930021 added the bug label Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants