Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fenok opened this issue Jan 23, 2024 · 0 comments
Open

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

fenok opened this issue Jan 23, 2024 · 0 comments

Comments

@fenok
Copy link

fenok commented Jan 23, 2024

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant