Skip to content

rror [ERR_REQUIRE_ESM]: require() of ES Modulee #102

@ryanhugh

Description

@ryanhugh

The latest version 7.0.0 causes this error:

error [ERR_REQUIRE_ESM]: require() of ES Module /.../node_modules/queue/index.js from /mycode/sandbox.ts not supported.
Instead change the require of index.js in /mycode/sandbox.ts to a dynamic import() which is available in all CommonJS modules.

I didn't get this error in v6. I'm about to downgrade to v6. I don't have type: module in my package.json and cannot add that. All the other packages work without that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions