Hello I'm using SB 7 with vitejs builder, I think i migrated everything correctly but for some reasons SB can't find any story in my project.
Here in the example i tried to to a single story, to see if it could solve the issue, but no luck.
Any idea? about what I'm missing? it's quite hard to debug because in the console i get no error, beside the one that tells that there no stories.
this is my config
const path = require('path');
module.exports = {
stories: ['../src/base-components/button/*.stories.tsx'],
staticDirs: [path.resolve(__dirname, '../public')],
"addons": [
"@storybook/addon-links",
"@storybook/addon-essentials",
{
name: '@storybook/addon-postcss',
options: {
postcssLoaderOptions: {
implementation: require('postcss'),
},
},
},
],
features: {
storyStoreV7: true,
},
core: { builder: "@storybook/builder-vite" },
framework: {
name: '@storybook/react-vite',
options: { fastRefresh: true },
},
docs: {
autodocs: "tag"
}
}
this is my story
import type { Meta } from '@storybook/react';
const meta: Meta<typeof Button> = {
/* 👇 The title prop is optional.
* See https://storybook.js.org/docs/7.0/react/configure/overview#configure-story-loading
* to learn how to generate automatic titles
*/
title: 'base-components/Button',
component: Button,
};
export default meta;