From f510be74b562e04e11a0d961be701d43fe1a8b94 Mon Sep 17 00:00:00 2001 From: Julien Dehais Date: Wed, 21 Oct 2026 16:48:19 +0200 Subject: [PATCH] ci: test application built with stimulus-bridge 4.0.2 webpack 5.112 removed webpack/lib/dependencies/LoaderDependency, which the @symfony/stimulus-bridge 3.x loader requires on load: the Sylius 2.1 test application front build fails on it ("Cannot find module"). Version 4.0.2 takes the module factory from the compilation instead. The test application merges tests/TestApplication/package.json into its own before yarn install, so the plugin raises the bridge there. --- CLAUDE.md | 4 ++++ tests/TestApplication/package.json | 5 +++++ 2 files changed, 9 insertions(+) create mode 100644 tests/TestApplication/package.json diff --git a/CLAUDE.md b/CLAUDE.md index 87792bb..33237ae 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -118,6 +118,10 @@ The QA commands are in [`CONTRIBUTING.md`](CONTRIBUTING.md). What it does not sa whose contexts are annotated. The Behat dependencies are the maintained ones (`behat/mink`, `behat/mink-browserkit-driver` 2.x): the abandoned `friends-of-behat` forks emit PHP 8.5 deprecations that Behat turns into failures. +- **`tests/TestApplication/package.json` raises `@symfony/stimulus-bridge` to `^4.0.2`**: the test + application's `preinstall` merges it into its own `package.json`. The 3.x loader requires + `webpack/lib/dependencies/LoaderDependency`, gone since webpack 5.112, and the Sylius 2.1 front + build fails on it (`yarn install` runs without a lockfile). - **The test application lists the products of the child taxons natively** (`sylius_shop.product_grid.include_all_descendants: true`): the plugin option doing the same is covered by the integration tests of the grid query, not by Behat. diff --git a/tests/TestApplication/package.json b/tests/TestApplication/package.json new file mode 100644 index 0000000..2e3e5e8 --- /dev/null +++ b/tests/TestApplication/package.json @@ -0,0 +1,5 @@ +{ + "devDependencies": { + "@symfony/stimulus-bridge": "^4.0.2" + } +}