Skip to content

Commit

Permalink
Merge pull request #26258 from storybookjs/fix/incompatible-addons-error
Browse files Browse the repository at this point in the history
CLI: Fix addon compatibility check error reporting in storybook dev
  • Loading branch information
yannbf committed Feb 29, 2024
2 parents c594ba9 + b7cdb94 commit c9d7eb1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 83 deletions.
82 changes: 0 additions & 82 deletions code/lib/cli/src/doctor/getIncompatibleAddons.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const getIncompatibleStorybookPackages = async (
const allDeps = await packageManager.getAllDependencies();
const storybookLikeDeps = Object.keys(allDeps).filter((dep) => dep.includes('storybook'));

if (storybookLikeDeps.length === 0) {
if (storybookLikeDeps.length === 0 && !context.skipErrors) {
throw new Error('No Storybook dependencies found in the package.json');
}

Expand Down

0 comments on commit c9d7eb1

Please sign in to comment.