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

Code: ERR_REQUIRE_ESM on clean-stack when running contentful-merge create #767

Open
renaudmenard opened this issue Feb 8, 2024 · 0 comments

Comments

@renaudmenard
Copy link

renaudmenard commented Feb 8, 2024

On my Mac M2, when I run

contentful-merge create --space "${CONTENTFUL_SPACE_ID}" --source "refonte2024" --target "production2" --cda-token "${CONTENTFUL_CDA_TOKEN}"

I get :

    Error: require() of ES Module /Users/renaudcheval/.config/yarn/global/node_modules/clean-stack/index.js from /Users/renaudcheval/.config/yarn/global/node_modules/contentful-merge/dist/commands/create/index.js not supported.
    Instead change the require of /Users/renaudcheval/.config/yarn/global/node_modules/clean-stack/index.js in /Users/renaudcheval/.config/yarn/global/node_modules/contentful-merge/dist/commands/create/index.js to a dynamic import()
    which is available in all CommonJS modules.
    Code: ERR_REQUIRE_ESM

I tried multiple node version.
Also when after I tried on the windows PC of the company it worked just fine

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