Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Storybook 7 upgrade issue (expecting HTML snippet or DOM node) #300

Open
jsheffers opened this issue Oct 9, 2023 · 2 comments
Open
Assignees
Labels

Comments

@jsheffers
Copy link

jsheffers commented Oct 9, 2023

Describe the bug
I've upgraded to storybook 7.4.6 and I'm having an issue where the story won't display. I get the following error for each component.

Expecting an HTML snippet or DOM node from the story: "Palettes" of "Base/Colors".

To Reproduce
Download the latest master of emulsify-drupal. Updated all values in package.json related to storybook from 7.0.7 to 7.4.0. Remove lock file, npm i, npm run dev.

Expected behavior
Storybook get's updated but each individual story won't load.

Screenshots

Desktop (please complete the following information):

  • OS: Mac OS
  • Browser Arc
@jsheffers jsheffers changed the title [BUG] Storybook 7 upgrade issue [BUG] Storybook 7 upgrade issue (expecting HTML snippet or DOM node) Oct 9, 2023
@jsheffers
Copy link
Author

This fixes the issue and should be added to the Storybook 7 merge.
#293 (comment)

Key line is this:

return Story()

@jsheffers
Copy link
Author

I also had to alter the paths in package.json script to be:

"storybook": "storybook dev --ci -s ../dist,../images -p 6006",
"storybook-build": "npm run build && storybook build -s ../dist,../images -o .out",

@amazingrando amazingrando moved this from Incoming to Backlog in Emulsify Project Oct 12, 2023
@callinmullaney callinmullaney self-assigned this May 23, 2024
@callinmullaney callinmullaney moved this from Backlog to In progress in Emulsify Project May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: In progress
Development

No branches or pull requests

2 participants