Skip to content

CommonJS version tries to require() an ES Module and breaks #131

@fenok

Description

@fenok

Maybe I'm missing something, but, to my understanding, the CommonJS version can't work because it forces a require() of an ES Module:

var effector_mjs = require('effector/effector.mjs');

Which of course leads to this error:

Error: require() of ES Module [EDITED]/node_modules/effector/effector.mjs not supported.
Instead change the require of [EDITED]/node_modules/effector/effector.mjs to a dynamic import() which is available in all CommonJS modules.

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