maticzav / ink-table

📐A table component for Ink.
184 stars 32 forks source link

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

Open hooper-hc opened 1 year ago

hooper-hc commented 1 year ago

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.

GeoBrodas commented 1 year ago

Same problem here

jdmg94 commented 1 year ago

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 commented 10 months ago

See #253