Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

Example given doesn't run #220

Open
rao-anant opened this issue Jan 13, 2023 · 0 comments
Open

Example given doesn't run #220

rao-anant opened this issue Jan 13, 2023 · 0 comments

Comments

@rao-anant
Copy link

rao-anant commented Jan 13, 2023

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant