- Issue created by @maxilein
- πΊπΈUnited States adam.bauer Juneau, Alaska
I am having the same issue, Drupal 10.2.7, php 8.1.29, Apache 2.4.59 server, MySQL 8.0.37
I have loaded the echarts with:
composer remove --prefer-dist npm-asset/echartsand verified that echarts exists in the libraries folder
I am not a composer expert but the echarts composer is looking for "apache/echarts", but my Drupal composer call it "npm-asset/echarts"
composer require 'drupal/charts_echarts:^1.0' --with-all-dependencies
returns this error:
- drupal/charts_echarts[1.0.0-alpha4, ..., 1.0.x-dev] require apache/echarts 5.3.2 -> could not be found in any version, there may be a typo in the package name. - π¬π§United Kingdom aaron.ferris
aaron.ferris β made their first commit to this issueβs fork.
- π¬π§United Kingdom aaron.ferris
Alos noticed this, played with the idea of swapping out to GitHub, but as above we could use
npm-asset
instead? - πΊπΈUnited States R_H-L
There's a couple of things going on. I am not sure why their composer.json doesn't resolve the dependency issue. It's also odd that the readme has you go through a bunch of steps to install the NPM, when the statement in their on composer should install it. That should really be updated, as the method described creates a ton of bloat.
I any case, I copied and pasted the package data for apache/echarts into my main composer.json and it let things install fine, and does pull down the latest version at time of install.
- π²π½Mexico emmavega
I have the same problem, I can't finish installing it on a drupal 10.3.6, the error text it gives me is the following:
Problem 1
- drupal/charts_echarts[1.0.0-alpha1, ..., 1.0.0-alpha3] require drupal/core ^8 || ^9 -> found drupal/core[8.0.0-beta6, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.5.x-dev] but the package is fixed to 10.3.6 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
- drupal/charts_echarts[1.0.0-alpha4, ..., 1.0.x-dev] require apache/echarts 5.3.2 -> could not be found in any version, there may be a typo in the package name.
- Root composer.json requires drupal/charts_echarts ^1.0 -> satisfiable by drupal/charts_echarts[1.0.0-alpha1, ..., 1.0.x-dev].Has anyone found something new?
- First commit to issue fork.
- πΊπΈUnited States andileco
Hi All! Apologies for not seeing this earlier. I updated the merge request with some code that's worked for me on the new Apexcharts.js (drupal.org/project/charts_apexcharts) module. Please try it out and let me know if it works!
- πΈπ¦Saudi Arabia 3eidoz Riyadh
I have the same problem, I can't finish installing it on a Drupal 11.1.3, the error text it gives me is the following:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires drupal/charts_echarts ^1.0 -> satisfiable by drupal/charts_echarts[1.0.0].
- drupal/charts_echarts 1.0.0 requires apache/echarts 5.3.2 -> could not be found in any version, there may be a typo in the package name.Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see for more details.
- It's a private package and you forgot to add a custom repository to find itRead for further common problems.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
exit status 2
Composer [require drupal/charts_echarts:^1.0] failed, composer command failed: exit status 2. stderr= - Status changed to RTBC
4 days ago 9:34pm 19 August 2025 - πΊπΈUnited States emerham
I added this issue fork in my repositories above Drupal to ensure it will have higher priority and pinned it to the latest issue fork commit.
"repositories": [ { "type": "package", "package": { "name": "drupal/charts_echarts", "version": "1.0.x-dev", "type": "drupal-module", "source": { "url": "git@git.drupal.org:issue/charts_echarts-3452404.git", "type": "git", "reference": "8df70036c2788edb4bcf52b7a8255088d990d7e6" } } }, { "type": "composer", "url": "https://packages.drupal.org/8" }, { "type": "composer", "url": "https://asset-packagist.org" },
I am able to use composer to require the module now and it installed cleanly
β cwsd8 (develop) β composer require drupal/charts_echarts:1.0.x-dev
./composer.json has been updated
Running composer update drupal/charts_echarts
Gathering patches for root package.
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals
- Locking drupal/charts_echarts (1.0.x-dev 8df7003)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Syncing drupal/charts_echarts (1.0.x-dev 8df7003) into cache
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
- Installing drupal/charts_echarts (1.0.x-dev 8df7003): Cloning 8df70036c2 from cache
Generating autoload filesI can confirm that the update to composer.json fixed the abilty to install the module using the Asset Packagist version of Echarts.
-
andileco β
committed 083f8997 on 1.0.x authored by
aaron.ferris β
Issue #3452404 by aaron.ferris, andileco, maxilein, adam.bauer, r_h-l,...
-
andileco β
committed 083f8997 on 1.0.x authored by
aaron.ferris β