-
-
Notifications
You must be signed in to change notification settings - Fork 87
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
Babel/d3-array incompatibility issue in new Windows installs #779
Comments
Thanks for flagging this @kayavila. Can you confirm which version of node you are using, and that you are doing this directly from the windows shell (i.e. not using the windows linux subsystem)? We have an open PR which should be merged in the next week that I believe will fix this, #764, however it needs a bit of additional testing before we deploy it. If there is a quick patch I would be happy to merge and release something. |
That's great that a fix is already in the works. I'd love to help with a patch sooner but unfortunately am a novice in this arena. Yes, this is in the Windows shell, not subsystem, and it's node version 16.14.2. |
Okay, thanks for that info. I can merge that PR and cut an alpha release on Friday which should solve your issue as it upgrades to support the latest versions of D3 + Babel. I'll post upgrade instructions here once that's done. |
Hi @kayavila, A new alpha version has been released which should hopefully fix this issue. To use it, you need to install the latest idyll version, and use it to create a new article:
Please let me know if you still run into issues. |
Working much better! Thank you for the quick fix. |
There seems to be an issue with babel/d3-array in fresh Windows installs. After creating an idyll article (and probably other types), trying to run idyll results in an unhandled error. This not an issue with idyll itself per se but may be impacting idyll users.
To Reproduce
Steps to reproduce the behavior:
npm install -g npm@latest
npm install -g idyll
idyll create
(use the defaults)cd my-idyll-post
idyll
An error is thrown -
Environment
I had newly reformatted Windows 10 just a week or so ago, so it's a pretty clean environment. Idyll is being used for a class I'm attending, and about five of us in the class (all on Windows 10) ran into this same issue.
Installing the same in a new Ubuntu virtual machine does not throw an error. d3-array and babel (and idyll) versions were the same.
Additional context
As discussed in babel/babel#11038, updating cumsum in d3-array.js to use the function below instead is a workaround -
Relevant links:
typescript
preset: incompatible with+=
operator inside arrow functions, nested in ternary babel/babel#11038The text was updated successfully, but these errors were encountered: