storybook-addon-next icon indicating copy to clipboard operation
storybook-addon-next copied to clipboard

CSS styles are missing in the result bundle

Open PavelZhuravlev opened this issue 2 years ago • 2 comments

Describe the bug

Styles, that I import in preview.js are ignored in the result bundle without any issue in the console. Storybook stories are unstyled. To reproduce the issue, try to run storybook in both development/production mode from your example in the repo https://github.com/RyanClementsHax/storybook-addon-next/tree/main/examples/with-tailwindcss

I'm facing same issue in real project also.

Your minimal, reproducible example

https://github.com/RyanClementsHax/storybook-addon-next/tree/main/examples/with-tailwindcss

Steps to reproduce

To reproduce the issue, try to run storybook in both development/production mode from your example in the repo https://github.com/RyanClementsHax/storybook-addon-next/tree/main/examples/with-tailwindcss

Expected behavior

Weback pick up the styles that you import in preview.js file.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

OS: macOS Node: 0.39.1

storybook-addon-next version

1.6.6

Additional context

No response

PavelZhuravlev avatar Jun 02 '22 18:06 PavelZhuravlev

Thanks for opening this issue!

Unfortunately I'm not able to reproduce this locally. I checked out the main branch of this repo, and within the with-tailwindcss example ran yarn install, yarn build-storybook, and npx serve storybook-static. I was able to see the storybook built and served just fine.

I will unfortunately need a reproduction repo in order to look into this further.

As a side note, I see that you are using node 0.39.1? Is that even a supported node version?

RyanClementsHax avatar Jun 25 '22 21:06 RyanClementsHax

This issue has been automatically marked stale because it it received no activity for 60 days. If you wish to keep this open, please leave a comment. Thanks.

github-actions[bot] avatar Aug 25 '22 03:08 github-actions[bot]

This issue has been automatically closed because it received no activity for 60 days. If you think this was closed by accident, please leave a comment. Thanks.

github-actions[bot] avatar Sep 02 '22 04:09 github-actions[bot]