wasp-lang / open-saas

A free, open-source SaaS app starter for React & Node.js with superpowers. Full-featured. Community-driven.
https://opensaas.sh
MIT License
8.26k stars 797 forks source link

Update `BarChart` to work with latest `apexcharts` update #241

Closed infomiho closed 4 months ago

infomiho commented 4 months ago

Users reported in Discord Typescript errors when using the latest Open SaaS:

Screenshot 2024-07-22 at 10 37 50

It's due to ApexCharts library we use for our charts made a breaking change in their types (removed the radius property we used in the options) but they bumped their version as a minor change: v3.50.0 -> v3.51.0 instead of major change so npm installed the next minor by default.

How we could fix it:

Reported to ApexCharts here: https://github.com/apexcharts/apexcharts.js/issues/4580

vincanger commented 4 months ago

ok @infomiho I removed the radius property as it wasn't really necessary anyway and BarChart is just an unused example chart we ship with it. This should be enough for now