- Issue created by @micnap
- π«π·France dydave
For those ending up landing like me on this issue after a search for:
ddev storybook stuck <i> [webpack-dev-middleware] wait until bundle finished
getting stuck during theddev
installation process with webpack5 and (project) type=html, as described on the ddev-storybook plugin page:I managed bypassing the problem by using Vite instead, which allowed completing the app setup without any further error or obstacle.
Eventually, I got to installing the Storybook β module, following the setup instructions at:
https://git.drupalcode.org/project/storybook/-/blob/1.x/README.mdWhich lead to further executing a few more commands with Yarn, probably also adding more changes to the package.json and storybook config files, in particular, changing the project type to
server
.Overall, the storybook app seems to be working well, along with the module, on a ddev stack:
- ddev:v1.23.1
- storybook:8.1.6
- drupal/core:10.2.6
- drupal/storybook:1.0.0-beta2
- node:v20.13.1
- npm:10.5.2
- yarn:4.2.2
Lastly, one of my colleagues more experienced in front-end development, explained he preferred working withYarn
instead ofnpm
, which also seems to be the recommended method described in the storybook module README file.Thanks everyone for the help, comments and documentation!