swimlane / ngx-charts

:bar_chart: Declarative Charting Framework for Angular
https://swimlane.github.io/ngx-charts/
MIT License
4.29k stars 1.15k forks source link

TypeError: s is not a function #1288

Closed AScarberry closed 2 years ago

AScarberry commented 4 years ago

Describe the bug Line chart breaks and will not load. TypeError: s is not a function followed by TypeError: Cannot read property 'getColor' of undefined

To Reproduce Upgrade "d3-time-format" to version 2.2.1

Expected behavior Line chart should load with no related console errors

ngx-charts version 12.0.1

Additional context Downgrading "d3-time-format" to version 2.1.3 fixes the issue

wangju1111 commented 4 years ago

The downgrading of d3-time-format, works for me, thank you

cunderwood-va commented 4 years ago

See also https://github.com/swimlane/ngx-charts/issues/1291; if updating @angular-devkit/build-angular fixes it, that's probably the better outcome rather than pinning a library

pantonis commented 4 years ago

@wangju1111 or anyone else post a working packages.config please?