Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions code/core/src/ERRORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ Storybook errors reside in this package and are categorized into:
1. **[Preview errors](./preview-errors.ts)**
- Errors which occur in the preview part of Storybook (where user code executes)
- e.g. Rendering issues, etc.
- available in `@storybook/core-events/preview-errors`
- available in `storybook/internal/preview-errors`
2. **[Manager errors](./manager-errors.ts)**
- Errors which occur in the manager part of Storybook (manager UI)
- e.g. Sidebar, addons, Storybook UI, Storybook router, etc.
- available in `@storybook/core-events/server-errors`
- available in `storybook/internal/server-errors`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: Manager errors should be available in storybook/internal/manager-errors, not server-errors. This is a copy-paste error that will confuse developers.

Suggested change
- available in `storybook/internal/server-errors`
- available in `storybook/internal/manager-errors`

3. **[Server errors](./server-errors.ts)**
- Errors which occur in node
- e.g. Storybook init command, dev command, builder errors (Webpack, Vite), etc.
- available in `@storybook/core-events/server-errors`
- available in `storybook/internal/server-errors`

## How to create errors

Expand Down
Loading