-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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 server needs an indexer for .stories.json
files
#20627
Comments
Hi there. I am running into this issue updating from 6 to 7. We are using storybook for our golang, server-rendered templates and use Is there a work around for this? If not, can you point me in the right direction to implement an indexer for |
@floodfx Sorry this didn't make the cut. Would be amazing if you could contribute an indexer for https://github.com/storybookjs/storybook/blob/next/code/addons/docs/src/preset.ts#L138-L154 The API kind of sucks now and we'd like to redo it in 7.x before making it public, but it's what we've got right now. The The return type of an indexer on a given file is currently a If you give it a try and run into any difficulties, please feel to jump into our Discord https://discord.gg/storybook and we can talk it out in the |
Ooh-la-la!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.1.0-alpha.14 containing PR #22460 that references this issue. Upgrade today to the
|
Boo-yah!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.10 containing PR #22460 that references this issue. Upgrade today to the
|
Describe the bug
Storybook adds a new "indexer" system for the sidebar. Because there is no indexer for
.stories.json
files, Storybook crashes on a new server project.To Reproduce
2174 mkdir server-test 2175 cd server-test 2176 yarn init -y 2177 npx sb@next init -t server
Results in:
The text was updated successfully, but these errors were encountered: