2amigos / yii2-chartjs-widget

ChartJs Widget For Yii2
https://2amigos.us
Other
109 stars 67 forks source link

Fatal error "The file or directory to be published does not exist: /vendor/bower-asset/chartjs/dist" #45

Open Krystian95 opened 4 years ago

Krystian95 commented 4 years ago

Hi, I've just installed your great plugin via composer! Using "composer require 2amigos/yii2-chartjs-widget:~2.0" (maybe the error should be also in the main page of plugin, where there's wrote version ~2.0) and it was installed correctly. I've try to put your demo code to display a first chart just for example, but it doesn't work :( (I've also tried with "2amigos/yii2-chartjs-widget": "dev-master").

Schermata 2020-02-27 alle 15 06 58

but if I visit the page I got this error:

Schermata 2020-02-27 alle 15 05 09

I've read in the other topics that is should fixed on new version 3.0, but I don't care why doesn't work :( #44 Could you kindly help me please? The only way I found to got it working is follow this reply to that issue: https://github.com/2amigos/yii2-chartjs-widget/issues/44#issuecomment-585999091

Many thanks & best regards, Chris

TonisOrmisson commented 4 years ago

you are probably using a non-released version of nnnick/chartjs. seems that non-released verisons are missing the "dist" folder.

matteo-cerioni commented 2 years ago

This error happens when using "minimum-stability": "dev" in both version 2 and version 3 of 2amigos/yii2-chartjs-widget .

It works good after setting "minimum-stability": "stable" in your composer.json file.