Skip to content

Commit

Permalink
fix: typo in error message thrown in readStorybookConfig (modernweb-d…
Browse files Browse the repository at this point in the history
  • Loading branch information
castastrophe committed May 21, 2022
1 parent 9115f3d commit 5ca835a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/polite-shoes-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@web/dev-server-storybook': patch
---

Error message typo fixed in readStorybookConfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const defaultConfigDir = path.join(process.cwd(), '.storybook');

function validateMainJs(mainJs: MainJs): MainJs {
if (typeof mainJs !== 'object') {
throw createError('main.js must export an bject');
throw createError('main.js must export an object');
}
if (mainJs.stories == null) {
throw createError('Missing stories option in main.js');
Expand Down

0 comments on commit 5ca835a

Please sign in to comment.