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

Error [ERR_REQUIRE_ESM]: require() of ES Module XXXX not supported. #258

Open
hooper-hc opened this issue Jul 3, 2023 · 3 comments
Open

Comments

@hooper-hc
Copy link

Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/XXXX/fe-material-monorepo/node_modules/.pnpm/ink@4.2.0_@types+react@18.2.14_react@18.2.0/node_modules/ink/build/index.js from /Users/XXXX.fe-material-monorepo/node_modules/.pnpm/ink-table@3.0.0_ink@4.2.0_react@18.2.0/node_modules/ink-table/dist/index.js not supported.

@GeoBrodas
Copy link

Same problem here

@jdmg94
Copy link

jdmg94 commented Aug 21, 2023

Due to pressure from Shopify Ink v4 is ESM only which fucked up the larger ecosystem leaving most of the third party components with this same issue which is the underlying clusterfuck that Node module resolution has been for the past several years. As a community, we need a working default transpilation setup, some thing like swc which could take commonJS dependencies and switch them to ESM and/or a config that would take everything to commonjs

@dskvr
Copy link

dskvr commented Nov 26, 2023

See #253

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

4 participants