Unable to decode /var/www/html/web/composer.json

Created on 4 April 2023, over 1 year ago
Updated 21 February 2024, 10 months ago

Problem/Motivation

After installing the module and going to the upgrade status report page, I encountered an error alert: Scanning is not possible until this is resolved.
and indeed was unable to click the button to scan selected modules/themes.

Steps to reproduce

This error occurred due to a stray "z" that was prepending the composer.json file. I did not notice initially because the composer.json file I was using was not inside the web directory, but was actually up a level. Leaving this note here for anyone else who encounters this error. After finding and removing this "z", I next encountered the error documented in this other issue ๐Ÿ’ฌ PHPStan binary was not found in the default vendor directory Postponed: needs info , for which there is a helpful fix in the comments.

The takeaway is that if you see this error, and are confused because your composer.json looks perfectly fine, check to make sure that you are looking at the same composer.json file that Drupal is looking at.

Proposed resolution

Maybe there is some way to tell upgrade status or Drupal to look at the correct composer.json.

๐Ÿ’ฌ Support request
Status

Closed: works as designed

Version

3.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States MegaKeegMan

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

Comments & Activities

Production build 0.71.5 2024