Problem/Motivation

Hey all. I have some feedback I've gathered from building https://github.com/cosmicdreams/drupal-storybook for Drupal 11 and Storybook 8.

Updated Requirements:
MariaDB: at least 10.6
php_version: at least 8.3. (ran into problems with 8.4)
nodejs_version: 20

New Requirement
webimage_extra_packages:
- xdg-utils

Without xdg-utils being installed Storybook 8 can not properly build / compile.

As a result the module's onboarding documentation should be updated to account for these different requirements.

Steps to reproduce

Try to get this module working with DDEV using the documentation you provide.

Proposed resolution

Update documentation to provide updated guidance.

Comments

cosmicdreams created an issue.

e0ipso’s picture

There is a section in the README about ddev, perhaps this could go in there. I think this is new in SB8.

cosmicdreams’s picture

Yea, That's what I've been observing, Since SB8. I'll see if I can update the README

gooddev’s picture

qick fix is to add --no-open to startup script of storybook

e.g. yarn storybook --no-open

neclimdul’s picture

Technically I think it was added in 8.3 or 8.4 so its pretty recent even in the SB8 releases. We're using the --no-open workaround.

tonypaulbarker’s picture

To workaround the issue I am using yarn in ddev instead of npm and using the --no-open flag. The --no-open flag seemed to have no effect for me when using npm.