Problem with scss in storybook with vite #25148
Unanswered
markAtAthena
asked this question in
General
Replies: 1 comment
-
does it work if you try the same with a relative path? |
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
-
Vite and storybook both say that they handle scss files automatically as long as sass is part of the project. I've added sass to my package.json and run "pnpm i" so I know that isn't the issue.
Our source had imports in our scss files such as:
@include '~@company/package/foo/bar'
and that caused an error of
Error: Can't find stylesheet to import.
and so I changed them to:
@use '@company/package/foo/bar'
and that got me past that, but now it says:
Error: Missing "./foo/bar" specifier in "@company/package" package
Does anyone know what might be the solution to this?
My .storybook/main.ts is:
I'm using the latest react/vite/storybook/typescript
Beta Was this translation helpful? Give feedback.
All reactions