diff --git a/code/core/src/core-server/utils/__tests__/remove-mdx-stories.test.ts b/code/core/src/core-server/utils/__tests__/remove-mdx-stories.test.ts index 0d23eec7d496..63423cbf5712 100644 --- a/code/core/src/core-server/utils/__tests__/remove-mdx-stories.test.ts +++ b/code/core/src/core-server/utils/__tests__/remove-mdx-stories.test.ts @@ -53,7 +53,7 @@ describe('remove-mdx-stories', () => { await expect(() => removeMDXEntries(Object.keys(list), { configDir })).rejects .toThrowErrorMatchingInlineSnapshot(` [SB_CORE-COMMON_0004 (InvalidStoriesEntryError): Storybook could not index your stories. -Your main configuration somehow does not contain a 'stories' field, or it resolved to an empty array. +Your main configuration does not contain a 'stories' field, or it resolved to an empty array. Please check your main configuration file and make sure it exports a 'stories' field that is not an empty array. diff --git a/code/core/src/server-errors.ts b/code/core/src/server-errors.ts index 9dbf6fef74e1..e5ee2fe5e685 100644 --- a/code/core/src/server-errors.ts +++ b/code/core/src/server-errors.ts @@ -143,7 +143,7 @@ export class InvalidStoriesEntryError extends StorybookError { 'https://storybook.js.org/docs/faq#can-i-have-a-storybook-with-no-local-stories', message: dedent` Storybook could not index your stories. - Your main configuration somehow does not contain a 'stories' field, or it resolved to an empty array. + Your main configuration does not contain a 'stories' field, or it resolved to an empty array. Please check your main configuration file and make sure it exports a 'stories' field that is not an empty array.`, });