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

[Extension/Vue.volar] Unexpected token "." #11797

Open
FossPrime opened this issue Oct 24, 2022 · 1 comment
Open

[Extension/Vue.volar] Unexpected token "." #11797

FossPrime opened this issue Oct 24, 2022 · 1 comment
Labels
vscode issues related to VSCode compatibility

Comments

@FossPrime
Copy link

Bug Description:

After installing volar v1.0.9 for Vue support, I get the following error:

Screenshot from 2022-10-24 18-30-39

Steps to Reproduce:

I installed it by

  1. Downloading the vscx from https://marketplace.visualstudio.com/items?itemName=Vue.volar
  2. Running sudo unzip Vue.volar-1.0.9@linux-x64.vsix -d /google/devshell/editor/theia/plugins/Vue.volar
  3. Restarting theia with:
sudo apt install pslist
ps ax | grep runuser | grep "theia start"
sudo rkill PID_OF_GREP_OUTPUT

Additional Information

  • Operating System: Debian
  • Theia Version: Cloud Shell Editor v1.25.0
@msujew
Copy link
Member

msujew commented Oct 25, 2022

Hey @FossPrime,

can you tell which version of node.js is running in the background? Such errors usually indicate that the extension code is written in ES2020 (or similar) and therefore expects node 14, but was parsed using node 12. Older versions of Theia recommend to use node 12.

Note that I just tried installing the extension as well, which doesn't lead to the parse error on node 14. However, on startup, the extension still runs into an error, as it requires vscode API version >= 1.67, which isn't satisfied by Theia. The latest compatible version seems to be 0.34.11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

2 participants