VulcanJS/vulcan-next

CSS modules in storybook

Closed this issue · 1 comments

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.

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