Storybook - [unocss] entry module not found, have you add `import 'uno.css'` in your main entry?
Author: ErikDCAlmeidaCreated Apr 4, 2024Updated Sep 29, 2026
UnoCSS version
^0.58.9
Describe the bug
I'm trying to use UnoCSS with Storybook, but every time I try to build Storybook it gives the error below on the component test screen.
How can I solve this problem? Does anyone have any solution?
Reproduction
https://stackblitz.com/edit/unocss-unocss-gytrvf
Run the pnpm storybook command and you will get the error when the compilation finishes.
System Info
No response
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Source: unocss/unocss