- Issue created by @andreic
- Status changed to Closed: works as designed
5 months ago 12:59pm 26 June 2024 - πΈπ°Slovakia kaszarobert
The module itself requires Drupal 9, 10 or 11 in blizz_table_field.info.yml.
I think the problem in your case is this line:
- drupal/blizz_table_field[2.0.3, ..., 2.0.8] require bower-asset/papaparse ^5.3 -> could not be found in any version, there may be a typo in the package name.
Now, because the latest Drupal 10 compatible packages cannot be installed for your because of this, composer tries older versions of the module which are not good for the site again because they are for Drupal 8 or 9 only, and you have Drupal 10, that's why it shows that those require 'drupal/core ^9' and can't be installed.
The solution for you would be adding asset packagist manually to your composer.json to the repositories section like this:
"repositories": { "drupal": { "type": "composer", "url": "https://packages.drupal.org/8" }, "assets": { "type": "composer", "url": "https://asset-packagist.org" } },
And under the "extra" key, bower-asset and npm-asset folder needs to be set:
"installer-paths": { "web/core": [ "type:drupal-core" ], "web/libraries/{$name}": [ "type:drupal-library", "type:bower-asset", "type:npm-asset" ], "web/modules/contrib/{$name}": [ "type:drupal-module" ], "web/profiles/contrib/{$name}": [ "type:drupal-profile" ], "web/themes/contrib/{$name}": [ "type:drupal-theme" ], "drush/Commands/contrib/{$name}": [ "type:drupal-drush" ], "web/modules/custom/{$name}": [ "type:drupal-custom-module" ], "web/profiles/custom/{$name}": [ "type:drupal-custom-profile" ], "web/themes/custom/{$name}": [ "type:drupal-custom-theme" ] }, "installer-types": [ "bower-asset", "npm-asset" ],
Similarly, how the official docs mention this: https://www.drupal.org/docs/develop/using-composer/manage-dependencies#t... β
I guess I should update the module install instructions that previous maintainers wrote with a much clearer step by step starting from drupal/recommended-project template.
Please reopen the issue if this not fixes it for you.
- πΈπ°Slovakia kaszarobert
I updated the install instructions on the module page.