Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

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

Open
Krystian95 opened this issue Feb 27, 2020 · 2 comments

Comments

@Krystian95
Copy link

Krystian95 commented Feb 27, 2020

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: #44 (comment)

Many thanks & best regards,
Chris

@Krystian95 Krystian95 changed the title Fatal error "The file or directory to be published does not exist: /vendor/nnnick/chartjs/dist" Fatal error "The file or directory to be published does not exist: /vendor/bower-asset/chartjs/dist" Feb 27, 2020
@TonisOrmisson
Copy link

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

@matteo-cerioni
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants