Thought I would check the module out however when I went to install it I had to add the repo to my main composer.json file directly. Did I do something wrong or is the modules composer.json file not being picked up correctly?

Thanks in advance.

Comments

Christopher Riley created an issue. See original summary.

erik seifert’s picture

Install as usually with composer

composer require drupal/image_sizes

for assets following this guide:
https://drupalize.me/tutorial/composer-configuration-drupal?p=3233

erik seifert’s picture

Status: Active » Postponed (maintainer needs more info)
Christopher Riley’s picture

That is exactly what I did and it complained about not being able to find the two (2) support files as so:

-> composer require drupal/image_sizes
Using version ^1.0 for drupal/image_sizes
./composer.json has been updated
Gathering patches for root package.
> DrupalProject\composer\ScriptHandler::checkComposerVersion
Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1
- drupal/image_sizes 1.0.0 requires npm-asset/css-element-queries ~1.0.2 -> no matching package found.
- drupal/image_sizes 1.x-dev requires npm-asset/css-element-queries ~1.0.2 -> no matching package found.
- Installation request for drupal/image_sizes ^1.0 -> satisfiable by drupal/image_sizes[1.x-dev, 1.0.0].

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 it

Read for further common problems.

Installation failed, reverting ./composer.json to its original content.

By adding the repo as follows in the repositories section of the composer.json it works:

"1": {
"type": "composer",
"url": "https://asset-packagist.org"
},

I have a ton of modules installed and wanted to bring it to your attention since normally I do not have to add a repo.

Thanks

erik seifert’s picture

I will write a notice on description page.

erik seifert’s picture

Status: Postponed (maintainer needs more info) » Fixed

Add documentation to project description.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.