Skip to content

Problem importing and parsing bower_component #1453

@edvanleeuwen

Description

@edvanleeuwen

After upgrading from 8.9.0 tot 9.1.0, I get the following error executing composer update just after the last step (compiling Greenwhich css).
Reverting to 8.9.0 works.

`> @php -r 'require_once '''/home/myuser/domains/o.mydomain/public_html/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL::copy('''../../bower_components/select2/select2-bootstrap.css''', '''extern/select2/select2-bootstrap.scss''');'

@php -r 'require_once '''/home/myuser/domains/o.mydomain/public_html/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL\Tasks::scss($GLOBALS[\Civi\CompilePlugin\TaskTransfer::GLOBAL_VAR]);'
PHP Fatal error: Uncaught Error: Object of class Sabberworm\CSS\CSSList\KeyFrame could not be converted to string in /home/myuser/domains/o.mydomain/public_html/vendor/padaliyajay/php-autoprefixer/src/Autoprefixer.php:82
Stack trace:
#0 [internal function]: Padaliyajay\PHPAutoprefixer\Autoprefixer->Padaliyajay\PHPAutoprefixer{closure}()
#1 /home/myuser/domains/o.mydomain/public_html/vendor/padaliyajay/php-autoprefixer/src/Autoprefixer.php(81): array_filter()
#2 /home/myuser/domains/o.mydomain/public_html/vendor/padaliyajay/php-autoprefixer/src/Autoprefixer.php(24): Padaliyajay\PHPAutoprefixer\Autoprefixer->compileCSSList()
#3 /home/myuser/domains/o.mydomain/public_html/vendor/civicrm/composer-compile-lib/src/Tasks/Scss.php(50): Padaliyajay\PHPAutoprefixer\Autoprefixer->compile()
#4 /home/myuser/domains/o.mydomain/public_html/vendor/civicrm/composer-compile-lib/src/Tasks.php(15): CCL\Tasks\Scss::compile()
#5 Command line code(1): CCL\Tasks::scss()
#6 {main}
thrown in /home/myuser/domains/o.mydomain/public_html/vendor/padaliyajay/php-autoprefixer/src/Autoprefixer.php on line 82
Script @php -r 'require_once '''/home/myuser/domains/o.mydomain/public_html/vendor/autoload.php'''; Civi\CompilePlugin\TaskTransfer::import(); \CCL\Tasks::scss($GLOBALS[\Civi\CompilePlugin\TaskTransfer::GLOBAL_VAR]);' handling the shell-runner event returned with error code 255
Subcommand @composer compile returned with error code 255

In ComposerPassthru.php line 73:

Subcommand @composer compile returned with error code 255
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    third-partyIssue with a third-party tool or library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions