sgratzl / chartjs-chart-boxplot

Chart.js Box Plots and Violin Plot Charts
https://www.sgratzl.com/chartjs-chart-boxplot/
MIT License
107 stars 24 forks source link

Getting error Object literal may only specify known properties, and 'boxplot' does not exist in type '_DeepPartialObject<ElementOptionsByType<"boxplot">>' during GitHub build #136

Closed maximgorbatyuk closed 3 months ago

maximgorbatyuk commented 3 months ago

I use the library for my open source web project written with Angular v17, and did not change anything regarding charts today. But, during the build I got the error Object literal may only specify known properties, and 'boxplot' does not exist in type '_DeepPartialObject<ElementOptionsByType<"boxplot">>'. by some reason. I don't know to what is it related to, but it started to happen. Could you please have a look into error.

To Reproduce

  1. Open https://github.com/Techinterview-space/frontend/actions/runs/9436083106/job/25990331074
  2. Go to build error

Expected behavior

No errors like in previous builds (https://github.com/Techinterview-space/frontend/actions/runs/9429276168/job/25975503541)

Action result:

The error Object literal may only specify known properties, and 'boxplot' does not exist in type '_DeepPartialObject<ElementOptionsByType<"boxplot">>'. appears. File https://github.com/Techinterview-space/frontend/blob/ce40307f2ac08edbddfef6e5e04d391a321a4690/src/app/modules/salaries/components/grades-min-max-salaries-chart/grades-min-max-chart-object.ts#L70

Screenshots

CleanShot 2024-06-09 at 16 15 21

Context

maximgorbatyuk commented 3 months ago

Forgot to mention that the same build command works fine locally

maximgorbatyuk commented 3 months ago

Ok, I got the issue. Pipeline used command nom update which upgrades minor version of the library up to 4.4.0, but I was not doing it locally. After I did it, I also started to see the error:

CleanShot 2024-06-10 at 09 02 11@2x

Just removed the unknown property, and build was successful. Sorry for the issue. Closing it.