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

buildStoriesJson feature produces error when "stories" is set to async function #19061

Open
rachelholtz opened this issue Aug 30, 2022 · 1 comment

Comments

@rachelholtz
Copy link

In "main.js" I am using an async function to set which story files to load. This works correctly until I add the buildStoriesJson and I get an error.

Screen Shot 2022-08-30 at 10 48 57 AM

This is my "main.js" file:

module.exports = {
  stories: async (list) => [...list, ...findStories()],
  addons: [
    '@storybook/addon-links',
    '@storybook/addon-essentials',
    '@storybook/preset-scss',
    '@storybook/addon-a11y',
  ],
  features: {
    buildStoriesJson: true
  },
};

Using @storybook/react@6.5.10

@rachelholtz
Copy link
Author

Any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant