You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.
I copied the source given under
"Example: Dereferencing Remote References with Resolvers" to example.js
I ran it like so:
node example.js
I get the following error:
async resolve(ref: uri.URI) {
^
SyntaxError: Unexpected token ':'
at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:475:14)
at async link (node:internal/modules/esm/module_job:67:21)
Hello,
I copied the source given under
"Example: Dereferencing Remote References with Resolvers" to example.js
I ran it like so:
node example.js
I get the following error:
async resolve(ref: uri.URI) {
^
SyntaxError: Unexpected token ':'
at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:475:14)
at async link (node:internal/modules/esm/module_job:67:21)
My env:
json-ref-resolver ver: 3.1.5
node: v16.17.0
npm: 8.15.0
OS: Ubuntu
The text was updated successfully, but these errors were encountered: