Open hooper-hc opened 1 year ago
Same problem here
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
See #253
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/XXXX/fe-material-monorepo/nodemodules/.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.