echarts not installed

Created on 4 June 2024, 8 months ago

Problem/Motivation


composer require 'drupal/charts_echarts:^1.0'
./composer.json has been updated
Running composer update drupal/charts_echarts

Loading composer repositories with package information
Updating dependencies
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 <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it


Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¦πŸ‡ΉAustria maxilein

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • 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/echarts

    and 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-assetinstead?

  • Pipeline finished with Success
    7 months ago
    Total: 140s
    #205500
  • πŸ‡ΊπŸ‡Έ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!

Production build 0.71.5 2024