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

Error in @wordpress/components Storybook #68090

Closed
2 of 6 tasks
psrpinto opened this issue Dec 18, 2024 · 2 comments · Fixed by #68100
Closed
2 of 6 tasks

Error in @wordpress/components Storybook #68090

psrpinto opened this issue Dec 18, 2024 · 2 comments · Fixed by #68100
Assignees
Labels
[Status] In Progress Tracking issues with work in progress Storybook Storybook and its stories for components [Type] Bug An existing feature does not function as intended

Comments

@psrpinto
Copy link
Member

psrpinto commented Dec 18, 2024

Description

An error is shown in the @wordpress/components Storybook, in the "Playground -> Block Editor" section.

Step-by-step reproduction instructions

  1. Go to https://wordpress.github.io/gutenberg/?path=/docs/playground-block-editor--docs
  2. The error is shown

Screenshots, screen recording, code snippet

Image
Error: settings is undefined
  at useMemo (/gutenberg/9584.e086b6ad.iframe.bundle.js:94:560907)
  at ./node_modules/react/cjs/react.production.min.js/exports.useMemo (/gutenberg/9584.e086b6ad.iframe.bundle.js:94:632997)
  at useMediaUploadSettings (/gutenberg/4947.ae0f0d66.iframe.bundle.js:1:570189)
  at ./packages/block-editor/build-module/index.js/ExperimentalBlockEditorProvider< (/gutenberg/4947.ae0f0d66.iframe.bundle.js:1:570900)
  at Nh (/gutenberg/9584.e086b6ad.iframe.bundle.js:94:554670)
  at Vk (/gutenberg/9584.e086b6ad.iframe.bundle.js:94:613271)
  at Uk (/gutenberg/9584.e086b6ad.iframe.bundle.js:94:602566)
  at Tk (/gutenberg/9584.e086b6ad.iframe.bundle.js:94:602497)
  at Ik (/gutenberg/9584.e086b6ad.iframe.bundle.js:94:602364)
  at Nk (/gutenberg/9584.e086b6ad.iframe.bundle.js:94:599248)
  at Gk (/gutenberg/9584.e086b6ad.iframe.bundle.js:94:597806)
  at J (/gutenberg/9584.e086b6ad.iframe.bundle.js:94:635257)
  at R (/gutenberg/9584.e086b6ad.iframe.bundle.js:94:635806)

Environment info

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

  • Yes

Please confirm which theme type you used for testing.

  • Block
  • Classic
  • Hybrid (e.g. classic with theme.json)
  • Not sure
@psrpinto psrpinto added the [Type] Bug An existing feature does not function as intended label Dec 18, 2024
@Rishit30G
Copy link
Contributor

I can see a different issue, this can be fixed through optional chaining:

Image

@Mamaduka
Copy link
Member

This also has been reported in #66290 (comment).

cc @t-hamano

@Mamaduka Mamaduka added the Storybook Storybook and its stories for components label Dec 18, 2024
@swissspidy swissspidy self-assigned this Dec 18, 2024
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Status] In Progress Tracking issues with work in progress Storybook Storybook and its stories for components [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants