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

node12 run command vue-tsc error #737

Closed
CodingDoll opened this issue Nov 25, 2021 · 2 comments
Closed

node12 run command vue-tsc error #737

CodingDoll opened this issue Nov 25, 2021 · 2 comments
Labels

Comments

@CodingDoll
Copy link

using [email protected]
using [email protected]

\node_modules\vscode-jsonrpc\lib\common\linkedMap.js:40
        return this._head?.value;
                          ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)        
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)  
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (E:\Dode\PLAYGROUND\dl-vue-vite\node_modules\vscode-jsonrpc\lib\common\api.js:37:21)
    at Module._compile (internal/modules/cjs/loader.js:999:30)        
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

It is shown when the version of vscode-jsonrpc is 8.0.0-next.4. When I downgraded it to 8.0.0-next.3, the problem is solved, but another similar problem come up that the version of vscode-languageserver is also too high.

@johnsoncodehk
Copy link
Member

Please report to https:/microsoft/vscode-languageserver-node.

We are using the latest lsp features, so we need the next version of vscode-languageserver.

@AHIMOTU
Copy link

AHIMOTU commented Dec 2, 2021

It seems to be the Node version, node14+ is required. https://hub.fastgit.org/microsoft/vscode-languageserver-node/issues/861

TcTOrz pushed a commit to TcTOrz/three.example.js that referenced this issue Jan 14, 2022
1、升级node 14以上版本 vuejs/language-tools#737 解决SyntaxError: Unexpected token
'.'的bug
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