Skip to content

Issues with Node 24 #6

@f-lombardo

Description

@f-lombardo
  1. Commands like
    yarn ts-node --esm ./src/list-identifiers.ts
    should be changed with
    yarn node --loader ts-node/esm ./src/list-identifiers.ts
  2. There are errors in imported libraries, for example:
file:///home/xx/veramo-nodejs-tutorial/node_modules/@veramo/did-manager/build/id-manager.js:1
import schema from '@veramo/core-types/build/plugin.schema.json' assert { type: 'json' };
                                                                 ^^^^^^

SyntaxError: Unexpected identifier 'assert'
    at compileSourceTextModule (node:internal/modules/esm/utils:317:16)
    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:111:18)
    at #translate (node:internal/modules/esm/loader:541:20)
    at afterLoad (node:internal/modules/esm/loader:594:29)

Node.js v24.11.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions