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
But the same issue happens even if there is no box.json file.
Output
$ php box.phar compile
> The command"'/opt/homebrew/bin/composer' 'dump-autoload' '--classmap-authoritative' '--no-dev' '--ansi'" failed.
Exit Code: 1(General error)
Working directory: /private/var/folders/_d/g7ltcm3130b5_t60621hgs0w0000gn/T/box/Box32256
Output:
================
Error Output:
================
In AutoloadGenerator.php line 1337:
require(/private/var/folders/_d/g7ltcm3130b5_t60621hgs0w0000gn/T/box/Box32256/vendor/phpstan/phpstan/bootstrap.php): Failed to open stream: No such file o
r director
y
Commenting because I found this issue while investigating the same error here:
This is related to a long-standing issue when a Composer plugin is provided by a dev dependency, because Box removes dev dependencies at the filesystem level but Composer tries to load them anyway. I've posted a workaround that may or may not work for you in #580, which seems to be where this is being tracked.
Bug report
box.json.dist
But the same issue happens even if there is no
box.json
file.Output
Just clone the repo on branch
box-issue
and runphp box.phar compile
: riverwaysoft/php-converter@a77455aThe text was updated successfully, but these errors were encountered: