Open jrop opened 3 years ago
...because it makes use of Optional Chaining in its source. I temporarily fixed it by:
cd ~/.local/share/nvim/lspinstall/json/vscode-json/json-language-features/server/dist/node
{ "presets": [ [ "@babel/preset-env", { "targets": { "node": "12" } } ] ] }
npm init -f npm i @babel/{core,cli,preset-env} ./node_modules/.bin/babel jsonServerMain.js > jsonServerMain.new.js cp jsonServerMain.js jsonServerMain.js.bak mv jsonServerMain.new.js jsonServerMain.js
This is probably the wrong place to file this issue, but I'm putting it here to make it searchable
...because it makes use of Optional Chaining in its source. I temporarily fixed it by: