Closed easyfrog closed 2 years ago
Likely that https://github.com/sveltejs/language-tools is not compatible with Node 18. You can create an issue in https://github.com/sveltejs/language-tools
On our side we could implement a check for "too new" node version and show some more user friendly error in this case. There is a feature request for it already in https://github.com/sublimelsp/lsp_utils/issues/89
@easyfrog to add on @rchl note.
One way to avoid hitting this issue and having to manually switch to node versions is to:
Preferences: LSP Utils Settings
,{
"nodejs_runtime": ["local"],
}
that will prompt you to install a local node version in Sublime Packages Folder(you do not need to know that). That local node version will not affect your system. LSP-* node based plugins will use that local node version, and thus you will not see this error anymore.
I view the codes in the error place. read-wasm.js
first line.
I think the error because node 18 support fetch
api, but there is not mappingsWasmUrl
supply.
So I simply change the fist line to if (false)
to avoid using fetch
api. 😄
I got these errors:
The error occurs on node 18.7.0 but works fine on node 10.16.0 and 16.8.0