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
d3.cumsum fails to transpile with babel6 + preset-react #147
Comments
Sorry, but this isn’t a help forum for Babel. You’ll need to find an alternative forum if you want help using Babel. Good luck! |
For anyone else that stumbles upon this babel/babel#11038 |
temporary solution but works by tweaking the input : link to original post https://github.com/FormidableLabs/victory-native/issues/653#issuecomment-859398327 function cumsum(values, valueof) { |
Please downgrade the d3 version to "d3": "5.15.0". |
Many thanks, this fixed it for me.
…On Thu, Jul 8, 2021, 12:49 1rjun ***@***.***> wrote:
Please downgrade the d3 version to "d3": "5.15.0".
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#147 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANISW4PJGDUCGGWJDZSY22TTWVYD5ANCNFSM4NP46WCA>
.
|
Unlocking briefly to mention that this bug (originally reported in January 2018 babel/babel#7235) has now been fixed in Babel by babel/babel#13581. |
When trying to transpile "d3-array" with babel 6 + babel-preset-react, babel fails with a syntax error on "cumsum.js"
How to repeat:
Run:
npm install d3-array
npm install babel-cli
npm install babel-preset-react
node node_modules\babel-cli\bin\babel.js --presets babel-preset-react .\node_modules\d3-array\src\cumsum.js
Result:
Omitting "--presets babel-preset-react" and transpiling with e.g. preset-env works:
npm install babel-preset-env
node node_modules\babel-cli\bin\babel.js --presets babel-preset-env .\node_modules\d3-array\src\cumsum.js
Results in:
The text was updated successfully, but these errors were encountered: