Skip to content

Commit 5ca835a

Browse files
authored
fix: typo in error message thrown in readStorybookConfig (#1817)
1 parent 9115f3d commit 5ca835a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/polite-shoes-tap.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@web/dev-server-storybook': patch
3+
---
4+
5+
Error message typo fixed in readStorybookConfig

packages/dev-server-storybook/src/shared/config/readStorybookConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const defaultConfigDir = path.join(process.cwd(), '.storybook');
99

1010
function validateMainJs(mainJs: MainJs): MainJs {
1111
if (typeof mainJs !== 'object') {
12-
throw createError('main.js must export an bject');
12+
throw createError('main.js must export an object');
1313
}
1414
if (mainJs.stories == null) {
1515
throw createError('Missing stories option in main.js');

0 commit comments

Comments
 (0)