Skip to content
Source
Sign inSign up
TanStack/react-charts

Error: require() of ES Module [...] `buildAxis.linear.js` not supported. #353

Send to my agent
Openlacymorrow(GitHub profile, opens in a new tab) opened this issue 9 comments
Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/lacymorrow/repo/gridamp-next/node_modules/d3-time-format/src/index.js from /Users/lacymorrow/repo/gridamp-next/node_modules/react-charts/lib/utils/buildAxis.linear.js not supported.
Instead change the require of index.js in /Users/lacymorrow/repo/gridamp-next/node_modules/react-charts/lib/utils/buildAxis.linear.js to a dynamic import() which is available in all CommonJS modules.

Sign in to join this conversation.