Skip to content

Commit

Permalink
Fix[317]: Storybook Docs fail with error "Cannot read properties of u…
Browse files Browse the repository at this point in the history
…ndefined (reading 'content')" (#318)

* fix: remove the unused Storybook theme addon

* chore: remove the "src" folder from the story search path

* chore: update package-lock

* chore: remove @storybook/addon-themes because was added to package.json but not used by Storybook

* fix: update import statement

---------

Co-authored-by: Andrea Forni <[email protected]>
  • Loading branch information
andreaforni and Andrea Forni authored Jan 19, 2024
1 parent ed5f719 commit bf5cc5e
Show file tree
Hide file tree
Showing 3 changed files with 16,302 additions and 3,626 deletions.
8 changes: 3 additions & 5 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
import path from 'path'
import * as path from 'path'
import type { StorybookConfig } from '@storybook/react-vite'

const config: StorybookConfig = {
stories: [
'../stories/**/*.mdx',
'../src/**/*.jsx',
'../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)'
],
addons: [
'@storybook/addon-links',
'@storybook/addon-essentials',
'@storybook/addon-interactions',
'@storybook/addon-themes',
'storybook-dark-mode',
'storybook-dark-mode'
],
framework: {
name: '@storybook/react-vite',
Expand All @@ -32,4 +30,4 @@ const config: StorybookConfig = {
return config
}
}
export default config
export default config
Loading

0 comments on commit bf5cc5e

Please sign in to comment.