-
SummaryI have a React + Vite + TS Storybook project. All of the theme colors for the component library are in scss variable files. I am trying to import these variables into the theme.ts, but when running Storybook I get the error Running Storybook 7.6.12 Additional informationNo response Create a reproductionNo response |
Beta Was this translation helpful? Give feedback.
Answered by
higginbg
Jul 30, 2024
Replies: 1 comment 1 reply
-
Have you tried installing preset-scss? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have not tried it. It looks like that is for webpack though, but my project is using vite.
I ended up writing this script to turn the scss variables into a js object. A little bit of a workaround but it works.