1👍
I was facing the same problem and couldn’t find an answer. So I asked for some help on Github and we finally found a solution : https://github.com/symfony/ux/issues/1013
So on my project the issue was that it was installing two chart.js
npm why chart.js
And to fix it, I specified this on my package.json :
"chart.js": "^3.4.1 <3.9",
Then I deleted my package-lock.json and run :
npm install
Now you should be able to install date-fns and use ‘type’ => ‘time’ correctly with Symfony.
Have a look at the link, I detailed the whole manipulation for me.
I hope it will help you.
- [Chartjs]-Custom tooltip opacity always 1
- [Chartjs]-Is it possible to get the assigned ref name in a component? Vue.js
Source:stackexchange.com