Skip to content

Error finding setAllowedImportRoots() with new WIntercms 1.2.13 and Builder #74

Description

@Geraldhub

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions