Replies: 3 comments 3 replies
-
Hi @thatcort! I'm Dosu and I’m helping the storybook team. Your errors are caused by TypeScript trying to resolve types from Vitest and Chai, which aren't needed for a standard Angular Storybook setup. This usually happens if @vitest/expect, @vitest/spy, vitest, or @storybook/addon-vitest are present in your dependencies or referenced in your config. Storybook for Angular does not require Vitest or Chai—these are only used if you explicitly add the Vitest addon, which isn't recommended for Angular projects docs. Here’s how to fix it:
Storybook for Angular 19 is supported with Storybook 7+ docs, so you shouldn’t need any of the Vitest/Chai packages unless you’re using the Vitest addon, which is not required for Angular. If you still see issues after cleaning up dependencies and configs, try to create a minimal reproduction to help pinpoint the cause. To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
Hi @thatcort can you share your tsconfig settings? |
Beta Was this translation helpful? Give feedback.
-
I went looking through Github issues and it looks like Storybook doesn't support the new Angular build system: #31079 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I am trying to add Storybook to an Angular 19 multi-project workspace. The installation fails with the following errors:
Additional information
No response
Create a reproduction
No response
Beta Was this translation helpful? Give feedback.
All reactions