Description
After upgrading the Winter CMS core packages to 1.2.13, the following error occurs while rendering a template:
An exception has been thrown during the rendering of a template ("Call to undefined method Winter\Storm\Parse\Assetic\Filter\JavascriptImporter::setAllowedImportRoots()")
Cause
This appears to happen when the project also includes winter/wn-builder-plugin.
The latest Builder plugin (v2.1.1) requires:
"nikic/php-parser": "^4.13.2"
However, winter/storm 1.2.13 requires:
"nikic/php-parser": "^5.7"
Because of this dependency conflict, Composer keeps winter/storm at 1.2.12, while other Winter CMS core packages (such as wn-system-module, wn-backend-module, and wn-cms-module) are upgraded to 1.2.13.
This results in an inconsistent installation where wn-cms-module expects functionality that is only available in winter/storm 1.2.13, leading to the exception:
Call to undefined method Winter\Storm\Parse\Assetic\Filter\JavascriptImporter::setAllowedImportRoots()
Workarounds
- Remove winter/wn-builder-plugin, allowing winter/storm to upgrade to 1.2.13.
- Or keep all Winter CMS core packages on 1.2.12 until Builder supports the newer nikic/php-parser dependency.
Is there a compatible Builder release planned, or should the core package constraints be adjusted to prevent Composer from installing an incompatible combination?
Description
After upgrading the Winter CMS core packages to 1.2.13, the following error occurs while rendering a template:
An exception has been thrown during the rendering of a template ("Call to undefined method Winter\Storm\Parse\Assetic\Filter\JavascriptImporter::setAllowedImportRoots()")
Cause
This appears to happen when the project also includes winter/wn-builder-plugin.
The latest Builder plugin (v2.1.1) requires:
"nikic/php-parser": "^4.13.2"
However, winter/storm 1.2.13 requires:
"nikic/php-parser": "^5.7"
Because of this dependency conflict, Composer keeps winter/storm at 1.2.12, while other Winter CMS core packages (such as wn-system-module, wn-backend-module, and wn-cms-module) are upgraded to 1.2.13.
This results in an inconsistent installation where wn-cms-module expects functionality that is only available in winter/storm 1.2.13, leading to the exception:
Call to undefined method Winter\Storm\Parse\Assetic\Filter\JavascriptImporter::setAllowedImportRoots()
Workarounds
Is there a compatible Builder release planned, or should the core package constraints be adjusted to prevent Composer from installing an incompatible combination?