-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
medianIndex is not exported from d3-array, causing import error in @antv/g2 #6479
Comments
|
Thank you very much for re.I'll try. |
I tried to install version 3.2.4 and the above error was resolved, but another error occurred while compiling the project. `- info Creating an optimized production build
Error [ERR_REQUIRE_ESM]: require() of ES Module /data/git/DB-GPT/web/node_modules/d3-array/src/index.js from /data/git/DB-GPT/web/node_modules/d3-geo/dist/d3-geo.js not supported.
|
error of d3 in nextjs. d3/d3-array#218 |
问题描述
I encountered an error when trying to compile my project using @antv/g2. The error message is as follows:
Steps to Reproduce
Expected Behavior
The project should compile without errors.
Actual Behavior
The compilation fails with the error message mentioned above.
Environment
Additional Information
It appears that
medianIndex
is not exported fromd3-array
. Here is the output ofObject.keys(require('d3-array'))
:[
'Adder',
'InternMap',
'InternSet',
'ascending',
'bin',
'bisect',
'bisectCenter',
'bisectLeft',
'bisectRight',
'bisector',
'count',
'cross',
'cumsum',
'descending',
'deviation',
'difference',
'disjoint',
'every',
'extent',
'fcumsum',
'filter',
'fsum',
'greatest',
'greatestIndex',
'group',
'groupSort',
'groups',
'histogram',
'index',
'indexes',
'intersection',
'least',
'leastIndex',
'map',
'max',
'maxIndex',
'mean',
'median',
'merge',
'min',
'minIndex',
'nice',
'pairs',
'permute',
'quantile',
'quantileSorted',
'quickselect',
'range',
'reduce',
'reverse',
'rollup',
'rollups',
'scan',
'shuffle',
'shuffler',
'some',
'sort',
'subset',
'sum',
'superset',
'thresholdFreedmanDiaconis',
'thresholdScott',
'thresholdSturges',
'tickIncrement',
'tickStep',
'ticks',
'transpose',
'union',
'variance',
'zip'
]
Please provide guidance on how to resolve this issue.
重现链接
No response
重现步骤
No response
预期行为
No response
平台
屏幕截图或视频(可选)
No response
补充说明(可选)
No response
The text was updated successfully, but these errors were encountered: