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

D3 / d3-array/dist/d3-array.js: Unexpected token (139:15) #3527

Closed
cederom opened this issue Aug 22, 2021 · 1 comment
Closed

D3 / d3-array/dist/d3-array.js: Unexpected token (139:15) #3527

cederom opened this issue Aug 22, 2021 · 1 comment

Comments

@cederom
Copy link

cederom commented Aug 22, 2021

Hello world :-)

d3 is broken on import because of d3-array problem reported here d3/d3-array#229.

This problem is also reported on closed unsolved Issue #3505.

I need to remove all references to d3 from my project as this happens on import * as d3 from 'd3';:

Android Bundling failed 4845ms
SyntaxError: (..)my_project/node_modules/d3-array/dist/d3-array.js: Unexpected token (139:15)

  137 |   var sum = 0, index = 0;
  138 |   return Float64Array.from(values, valueof === undefined
> 139 |     ? v => (sum += +v || 0)
      |                ^
  140 |     : v => (sum += +valueof(v, index++, values) || 0));
  141 | }
  142 |

Please advise :-)

@mbostock
Copy link
Member

Duplicate of d3/d3-array#147.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants