You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to avoid build error on nextjs?
Error [ERR_REQUIRE_ESM]: require() of ES Module (...) node_modules/d3-array/src/index.js from (...) node_modules/d3fc/build/d3fc.js not supported. Instead change the require of index.js in (...) node_modules/d3fc/build/d3fc.js to a dynamic import() which is available in all CommonJS modules.
The text was updated successfully, but these errors were encountered:
This error message is when start build nextjs app with d3fc.
To reproduce this error in nextjs Import d3fc and start build with nextjs app - npm run build.
How to avoid build error on nextjs?
Error [ERR_REQUIRE_ESM]: require() of ES Module
(...) node_modules/d3-array/src/index.js from
(...) node_modules/d3fc/build/d3fc.js not supported. Instead change the require of index.js in
(...) node_modules/d3fc/build/d3fc.js to a dynamic import() which is available in all CommonJS modules.
The text was updated successfully, but these errors were encountered: