Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storybook - [unocss] entry module not found, have you add import 'uno.css' in your main entry? #3687

Open
4 tasks done
ErikDCAlmeida opened this issue Apr 4, 2024 · 3 comments

Comments

@ErikDCAlmeida
Copy link

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.
image
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

@ErikDCAlmeida ErikDCAlmeida changed the title [unocss] entry module not found, have you add import 'uno.css' in your main entry? Storybook - [unocss] entry module not found, have you add import 'uno.css' in your main entry? Apr 4, 2024
@arpowers
Copy link

arpowers commented Apr 4, 2024

I have the same issue, but have no idea what is causing it ... The file is being imported correctly I didn't get this warning before.. (I'm not using Storybook however. )

@1001v
Copy link

1001v commented Apr 8, 2024

Got the same issue with nuxt2 (no bridge) project with webpack. Also the official nuxt2 webpack example doesn't seem to work right now: https://stackblitz.com/edit/unocss-unocss-4pqjku?file=package.json,pages%2Findex.vue. Maybe it's caused by the same issue.

@pccq2002
Copy link

pccq2002 commented May 9, 2024

I have the same issue

const msg = '[unocss] Entry module not found. Did you add `import \'uno.css\'` in your main entry?'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants