instant-reference
instant-reference copied to clipboard
Error of Unexpected token; node version issue?
Hi. Those who got this working, can you tell what node version you're using? I'm getting this error on running copy-reference.js
.
import {execa, execaCommand, execaCommandSync} from "execa";
^
SyntaxError: Unexpected token {
at Module._compile (internal/modules/cjs/loader.js:723:23)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
Earlier I was on node 14, which complained the same, and now I'm on node 18. I'm getting similar error in calling phd-protocol-handler.js