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

ERR_REQUIRE_ESM with orbit-db-io 1.1.1-bac86ca.0 #39

@cs145442

Description

@cs145442

Hello Collaborators,
I'm experiencing issues with the latest update of orbit-db-io, which is a dependency for orbit-db.

Error [ERR_REQUIRE_ESM]: require() of ES Module /<project-path>/node_modules/orbit-db-io/index.js from /<project-path>/node_modules/ipfs-log/src/utils/index.js not supported.

Instead change the require of /<project-path>/node_modules/orbit-db-io/index.js in /<project-path>/node_modules/ipfs-log/src/utils/index.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/<project-path>/node_modules/ipfs-log/src/utils/index.js:6:12)
at Object.<anonymous> (/<project-path>/node_modules/ipfs-log/src/entry.js:4:27)
at Object.<anonymous> (/<project-path>/node_modules/ipfs-log/src/log.js:5:15)
at Object.<anonymous> (/<project-path>/node_modules/orbit-db-store/src/Store.js:7:13)
at Object.<anonymous> (/<project-path>/node_modules/orbit-db/src/OrbitDB.js:4:15)
at Object.<anonymous> (/<project-path>/<filename>.js:11:17) { code: 'ERR_REQUIRE_ESM'
}

Node.js v18.5.0

Hope can will be resolved soon. Thanks.

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