- Issue created by @Web-Beest
- πΊπΈUnited States madelinelise
Hello! Confirming I have the same issue this morning! I followed the sets in the project description and video.
I am running with ddev if that helps, otherwise it's a relatively fresh install of Drupal 10.2.4 - πΊπΈUnited States dgroene
I think I had this error before doing
drush role:perm:add anonymous 'render storybook stories' - π³π±Netherlands Web-Beest
@dgroene:
I've checked and rechecked, done a clean install and made sure the permissions were set. But it doesn't change anything in the outcome. - Status changed to Closed: works as designed
8 months ago 8:54am 9 April 2024 - π³π±Netherlands Web-Beest
I've got mine working now. I've created a new, clean setup (using Lando) and now it works. The only difference with regards to project structure is that I have created a subfolder 'drupal' like in the tutorial instead of my usual workflow. In one way or the other, it seems like Storybook couldn't find the stories in the old setup. I'll keep on checking what the difference is, but for now: it works as designed.
Old (not working):
/projectname/.storybook
/projectname/.yarn
/projectname/web
/projectname/vendor
/projectname/.lando.ymlNew (working):
/projectname/drupal/.storybook
/projectname/drupal/.yarn
/projectname/drupal/vendor
/projectname/drupal/web
/projectname/.lando.yml - π³π±Netherlands Web-Beest
Just another debug hint: check the console for errors. I've just encountered the same error with my environment that was working earlier. In my case it was a CORS error (development.services.yml was overwritten).
- πΊπΈUnited States rwanth New York, USA
For anyone else who makes their way here, my issue is that core-composer-scaffold was overwriting my development.services.yml file any time I added a new required package. I added the following to my composer.json to prevent this:
"extra": { // ... "drupal-scaffold": { // ... "file-mapping": { "[web-root]/sites/development.services.yml": false } } }
- π¦π²Armenia sergey_gabrielyan Yerevan π¦π²
Hello. @Web-Beest. Is #6 the only solution? Is there another solution?
- π³π±Netherlands Web-Beest
Hi Sergei,
No, this was eventually not the problem. The main thing was the CORS issues.