Closed kayue closed 3 years ago
I might have two webpack version installed in my project because Storybook doesn't fully support Webpack 5 yet, not sure is it going to be a problem.
Confirmed that it is related to Storybook 6.2 (beta).
Part of Storybook 6.2 (the ui manager) is still using webpack 4 and cause this error.
For people who uses Storybook 6.2, here is a solution: https://github.com/storybookjs/storybook/issues/14044
After upgrade Encore and the bridge to the latest version, I run into the following compile error:
There error was triggered in here:
https://github.com/symfony/stimulus-bridge/blob/7b3d6ea1d9ed84e4cca81dd00f0511a9c92f6dba/dist/webpack/loader.js#L36-L42
The minimal webpack.config.js I can trigger the error is this