bar chart: “scales.[x/y]Axes.barThickness” is deprecated. Please use “dataset.barThickness” instead

I’m using the following libraries:

"vue-chartjs": "^3.4.2",
"chart.js": "^2.9.4",
"chartjs-plugin-datalabels": "^0.6.0"

Since barthickness can be added to data only after chart.js version ^3.0.0 how can the warning be fixed?

Also, the graphs are blank (transparent) without background color.

attached image description here

How can this be handled.