symfony / webpack-encore-bundle

Symfony integration with Webpack Encore!
https://symfony.com/webpack-encore
MIT License
933 stars 83 forks source link

Increasing priority of pass to remove before Twig tries to use it #213

Closed weaverryan closed 1 year ago

weaverryan commented 1 year ago

Hi!

In 1.17.0, a compiler pass was added to remove the Twig extension that supplies the stimulus_ functions if StimulusBundle is installed (because it supplies those instead). However, the priority needs to be higher, else (depending on the order your bundles are installed) Twig might try to use the service first... and then we remove it. Results in:

The service "twig" has a dependency on a non-existent service "webpack_encore.twigstimulus extension". Did you mean this: "webpack_encore.twig_entry_files_extension"?

Cheers!