You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now rename the folder from switch to switchh to get src/components/switchh/index.tsx and src/components/switchh/index.stories.tsx and relaunch storybook to see it all working again.
Also discovered this issue today except in my case the file was called switch.tsx with an associated switch.stories.tsx file. Looks like special handling is required for this in Storybook.
Can you try out the following canary in your project and let me know whether it resolves any of your issues (or generates new ones)? We're looking to switch the default docgen from react-docgen-typescript to react-docgen, which is much faster and may also fix some long-standing bugs. Many thanks!
Note that the change is currently only for Vite projects. Instructions in the "how to test" section: 👉 #23825
Good day, not logged in here very often so please excuse the delay. I've just tried "storybook": "^7.4.5" and renamed my switchh component folder (which works in 7.4.5) to switch and it stopped working.
I think this should be a super trivial case to test. Please try creating the simplest of components in a switch folder to test. Thanks for the efforts.
Describe the bug
Storybook hangs when I call a component's containing folder
switch
.To Reproduce
src/components/switch/index.tsx
andsrc/components/switch/index.stories.tsx
yarn storybook
In the Brave browser dev console the error reads
Uncaught SyntaxError: Unexpected token '.'
In Firefox it points to this part of the generated code in
main.iframe.bundle.js
:Now rename the folder from
switch
toswitchh
to getsrc/components/switchh/index.tsx
andsrc/components/switchh/index.stories.tsx
and relaunch storybook to see it all working again.System
Additional context
The text was updated successfully, but these errors were encountered: