Replies: 1 comment
-
You're encountering an error: "No StoryBookConfig named Export" while building your app using Storybook v7.6.17. Possible Causes & Fixes1. Check Storybook Configuration ExportEnsure ✅ Example ( import type { StorybookConfig } from '@storybook/react-vite';
const config: StorybookConfig = {
stories: ['../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
framework: '@storybook/react-vite',
};
export default config; 🔹 Ensure 2. Check for Typo in Import/ExportThe error mentions 🔹 Use correct casing in imports and exports. 3. Update Storybook & DependenciesRun the Storybook upgrade command: npx storybook@latest upgrade Then reinstall dependencies: rm -rf node_modules package-lock.json && npm install 4. Clear Storybook Cachenpx storybook clean
npm run build-storybook 5. Ensure Correct Storybook Framework is InstalledFor Vite: npm install @storybook/react-vite --save-dev For Webpack: npm install @storybook/react-webpack5 --save-dev 6. If Using TypeScript, Update
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I am trying to build the App I am facing an issue that says
No StoryBookConfig named Export
although StoryBookConfig is exported and the export is even recognized
still while building the app
The storybook version used in the repo is 7.6.17
Beta Was this translation helpful? Give feedback.
All reactions