Skip to content

Commit

Permalink
Removed redundant @storybook/addon-docs dev dependency (#8184)
Browse files Browse the repository at this point in the history
@storybook/addon-docs was included as a dev dependency, and imported
into the config. This is now part of
[addon-essentials](https://storybook.js.org/docs/essentials) and
therefore it's inclusion here is redundant.

With addon-docs as a separate, additional dependency, storybook would
throw `TypeError: Failed to fetch dynamically imported module` when
importing mdx files, making it impossible to add custom documentation.

Co-authored-by: Nick Evesham <[email protected]>
Co-authored-by: Anthony Shew <[email protected]>
  • Loading branch information
3 people authored Jun 16, 2024
1 parent 206a84d commit 21be1a9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion examples/design-system/apps/docs/.storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const config = {
addons: [
getAbsolutePath("@storybook/addon-links"),
getAbsolutePath("@storybook/addon-essentials"),
getAbsolutePath("@storybook/addon-docs"),
],
framework: {
name: getAbsolutePath("@storybook/react-vite"),
Expand Down
1 change: 0 additions & 1 deletion examples/design-system/apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"devDependencies": {
"@repo/eslint-config": "workspace:*",
"@storybook/addon-actions": "^7.6.17",
"@storybook/addon-docs": "^7.6.17",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-links": "^7.6.17",
"@storybook/react": "^7.6.17",
Expand Down
3 changes: 0 additions & 3 deletions examples/design-system/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 21be1a9

Please sign in to comment.