yii2-chartjs-widget icon indicating copy to clipboard operation
yii2-chartjs-widget copied to clipboard

The file or directory to be published does not exist

Open fasi1208 opened this issue 6 years ago • 2 comments

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

fasi1208 avatar Apr 13 '20 08:04 fasi1208

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.

buttflattery avatar Aug 19 '21 23:08 buttflattery

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.

matteo-cerioni avatar Dec 16 '21 09:12 matteo-cerioni