storybookjs/storybook

[Bug]: Composition - initial loading state looks like the error state

Open

#21,509 建立於 2023年3月9日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)TypeScript (89,909 star) (10,058 fork)batch import
bugcompositionhelp wantedsev:S3

描述

Describe the bug

When compositing a ref it looks like it's initially erroring, then loads anyway.

When there's an actual error (reported the CORS error in #21501 and #21500 ) it can get stuck in the loading state, and not show the error state.

When trying to compose https://59c59bd0183bd100364e1d57-jjsanukdmo.chromatic.com/ (private Chromatic from Chromatic) I get the following error on the browser:

Access to fetch at 'https://59c59bd0183bd100364e1d57-jjsanukdmo.chromatic.com/index.json' from origin 'http://localhost:6006/' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the request's credentials mode is 'include'.

Additionally, the sidebar and tooltip stay in an infinite loading state

To Reproduce

  • add a ref
  • load the storybook
  • look at the sidebar as storybook loads

System

No response

Additional context

No response

貢獻者指南