Stylex with storybook and rspack #662
Unanswered
luckyluggi
asked this question in
Q&A
Replies: 1 comment
-
I believe storybook on dev mode needs to use babel-plugin. Something similar to this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I know there has already been a discussion about this bug, but i could not find a solution for it.
I also can not find the issue mentioned here:
#292
I want to create a design-system using stylex and react.
I want do use Storybook for documentation, testing and all the cool stuff storybook can do.
I setup a basic project using rspack as a bundler here:
https://github.com/luckyluggi/stylex_storybook
As soon as i start storybook and open a very simple story in the browser the following error does appear:
I setup the babel config like described here:
https://stylexjs.com/docs/learn/installation/
I also tried to replicate the example using webpack, wich results in the same error.
Please can anyone help me to solve the issue.
Stylex and Storybook would be the perfect match for me.
Beta Was this translation helpful? Give feedback.
All reactions