Skip to content
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

'bin' is not exported from 'd3-array' #1963

Closed
czmacer opened this issue Sep 10, 2021 · 3 comments
Closed

'bin' is not exported from 'd3-array' #1963

czmacer opened this issue Sep 10, 2021 · 3 comments
Labels
Status: Needs More Info ✋ A question or report that needs more info to be addressable

Comments

@czmacer
Copy link

czmacer commented Sep 10, 2021

Cannot render any chart due error

./node_modules/victory-histogram/es/helper-methods.js
Attempted import error: 'bin' is not exported from 'd3-array' (imported as 'd3Array').

@mcserep
Copy link

mcserep commented Sep 12, 2021

I faced the same issue, only on Windows. I think this is the same as #1822, which was closed unfortunately without dealing with the issue.

For me, after some debugging it turned out if I execute npm start or npm run build in PowerShell, there is no issue, only when using the good old Command Prompt of Windows. Since there are separate .cmd and .ps1 scripts in the .bin folder of node_modules, there could be an issue with the Batch scripts.

If you are also on Windows, maybe try using Powershell.

@ryan-roemer
Copy link
Member

What version of d3-array is imported? (Look first in ./node_modules/victory-histogram/node_modules/d3-array/package.json and then in ./node_modules/d3-array/package.json)

Also, where is this render happening? Is it in a browser (if so which browser)? Is it in Node.js?

What would be most useful if you could is to create a minimal reproduction repository that includes install + build + error reproduction steps so we can pull it down, follow the steps and see the error. Thanks!

@becca-bailey becca-bailey added the Status: Needs More Info ✋ A question or report that needs more info to be addressable label Feb 18, 2022
@becca-bailey
Copy link
Contributor

We have been having some general issues around upgrading d3 packages, which I have opened another issue to resolve. This could be the result of #1878 where we needed to downgrade this package in order to resolve some other dependency issues. I'm going to close this issue since it can't be verified in the current version, but if this is still coming up we can migrate discussion around d3 packages to #2124.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs More Info ✋ A question or report that needs more info to be addressable
Projects
None yet
Development

No branches or pull requests

4 participants