2amigos / yii2-chartjs-widget

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

The file or directory to be published does not exist #48

Open fasi1208 opened 4 years ago

fasi1208 commented 4 years ago

Hi, thanks for the plugin. I have installed it via the composer. Now when I am trying to view a basic sample of the chart. It's giving me an error.

ChartJs::widget([ 'type' => 'line', 'options' => [ 'height' => 400, 'width' => 400 ], 'data' => [ 'labels' => ["January", "February", "March", "April", "May", "June", "July"], 'datasets' => [ [ 'label' => "My First dataset", 'backgroundColor' => "rgba(179,181,198,0.2)", 'borderColor' => "rgba(179,181,198,1)", 'pointBackgroundColor' => "rgba(179,181,198,1)", 'pointBorderColor' => "#fff", 'pointHoverBackgroundColor' => "#fff", 'pointHoverBorderColor' => "rgba(179,181,198,1)", 'data' => [65, 59, 90, 81, 56, 55, 40] ], [ 'label' => "My Second dataset", 'backgroundColor' => "rgba(255,99,132,0.2)", 'borderColor' => "rgba(255,99,132,1)", 'pointBackgroundColor' => "rgba(255,99,132,1)", 'pointBorderColor' => "#fff", 'pointHoverBackgroundColor' => "#fff", 'pointHoverBorderColor' => "rgba(255,99,132,1)", 'data' => [28, 48, 40, 19, 96, 27, 100] ] ] ] ]);

Error

The file or directory to be published does not exist: F:\xampp\htdocs\mdc/vendor\bower/chartjs/dist

Note: I am using yii2

buttflattery commented 2 years ago

same for me i have the bower directory configurations changed in my config file and have changed the location to other than the vendor/bower directory.

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.