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

CSS modules in storybook #20

Closed
eric-burel opened this issue Jun 9, 2020 · 1 comment
Closed

CSS modules in storybook #20

eric-burel opened this issue Jun 9, 2020 · 1 comment

Comments

@eric-burel
Copy link
Collaborator

eric-burel commented Jun 9, 2020

See relevant issue in Storybook: storybookjs/storybook#9610 (comment)

Tracking branch:
https://github.com/VulcanJS/vulcan-next-starter/tree/bugfix/css-modules-storybook

Main Next+TS+storybook issue:
storybookjs/storybook#9610

CSS modules imports are not correctly loaded in stories, they get an empty object.
However, surprisingly, styled-jsx worked out-of-the box with new Storybook zero-config TS support.

Steps to solve

  • Wait for a fix from Storybook or Next

Issue can be seen in Storybook.

@eric-burel
Copy link
Collaborator Author

Solved already, by using ""storybook-css-modules-preset"

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

No branches or pull requests

1 participant