diff --git a/examples/cra-ts-kitchen-sink/src/stories/1-Button.stories.tsx b/examples/cra-ts-kitchen-sink/src/stories/1-Button.stories.tsx index 38a698e463a..aec839bc4e6 100644 --- a/examples/cra-ts-kitchen-sink/src/stories/1-Button.stories.tsx +++ b/examples/cra-ts-kitchen-sink/src/stories/1-Button.stories.tsx @@ -2,7 +2,9 @@ import React from 'react'; import { action } from '@storybook/addon-actions'; import { Button } from './Button'; +console.log('HERE'); export default { + title: 'Button', component: Button, }; diff --git a/lib/client-api/src/ClientApi.ts b/lib/client-api/src/ClientApi.ts index 95ee0385bda..fad8411a327 100644 --- a/lib/client-api/src/ClientApi.ts +++ b/lib/client-api/src/ClientApi.ts @@ -404,7 +404,9 @@ Read more here: https://github.com/storybookjs/storybook/blob/master/MIGRATION.m const { id: componentId, title } = defaultExport || {}; if (!title) { throw new Error( - `Unexpected default export without title: ${JSON.stringify(fileExports.default)}` + `Unexpected default export without title in '${fileName}': ${JSON.stringify( + fileExports.default + )}` ); }