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

Example given doesn't run #220

@rao-anant

Description

@rao-anant

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions