You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drupal-check seems to be having trouble finding the vendor directory.
Relative to my CWD, the docroot is at ./web and vendor is at ./vendor
The ./web/vendor directory doesn't exist.
Console output
drupal-check -vvv web/modules/custom
Current working directory: /Users/Me/Sites/foo.localhost
Using Drupal root: /Users/Me/Sites/foo.localhost/web
Using vendor root: /Users/Me/Sites/foo.localhost/web/vendor
Could not find autoload file.
Solution
In this case, the culprit was a stray and empty composer.json in the Drupal root. After deleting ./web/composer.json, drupal-check works as expected.
The text was updated successfully, but these errors were encountered:
Just posting in case it can help someone else.
How is drupal-check installed?
I tested both phar and cgr methods, uninstalling in between.
Environment:
Describe the bug
This project is based on a modified version of https://github.com/drupal-composer/drupal-project
drupal-check seems to be having trouble finding the vendor directory.
Relative to my CWD, the docroot is at
./web
and vendor is at./vendor
The
./web/vendor
directory doesn't exist.Console output
Solution
In this case, the culprit was a stray and empty composer.json in the Drupal root. After deleting
./web/composer.json
, drupal-check works as expected.The text was updated successfully, but these errors were encountered: