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
Server Error
Error: �[31m�[1mModule not found�[22m�[39m: ESM packages (lodash-es) need to be imported. Use 'import' to reference the package instead. https://nextjs.org/docs/messages/import-esm-externals
Import trace for requested module:
./node_modules/@ant-design/plots/lib/index.js
./node_modules/@ant-design/charts/lib/index.js
./src/components-product/Graph/bar.tsx
Server Error
Error: require() of ES Module ./node_modules/d3-array/src/index.js from ./node_modules/@antv/g2/lib/transform/utils/order.js not supported.
Instead change the require of index.js in ./node_modules/@antv/g2/lib/transform/utils/order.js to a dynamic import() which is available in all CommonJS modules.
💻 示例代码 [如果有必要,展示代码,线上示例,或仓库]
🚑 其他信息 [如截图等其他信息可以贴在这里]
The text was updated successfully, but these errors were encountered:
🧐 问题描述 [详细地描述问题,让大家都能理解]
Server Error
Error: �[31m�[1mModule not found�[22m�[39m: ESM packages (lodash-es) need to be imported. Use 'import' to reference the package instead. https://nextjs.org/docs/messages/import-esm-externals
Import trace for requested module:
./node_modules/@ant-design/plots/lib/index.js
./node_modules/@ant-design/charts/lib/index.js
./src/components-product/Graph/bar.tsx
在next.config.js中用了experimental.esmExternals: 'loose'之后变成
Server Error
Error: require() of ES Module ./node_modules/d3-array/src/index.js from ./node_modules/@antv/g2/lib/transform/utils/order.js not supported.
Instead change the require of index.js in ./node_modules/@antv/g2/lib/transform/utils/order.js to a dynamic import() which is available in all CommonJS modules.
💻 示例代码 [如果有必要,展示代码,线上示例,或仓库]
🚑 其他信息 [如截图等其他信息可以贴在这里]
The text was updated successfully, but these errors were encountered: