quasar icon indicating copy to clipboard operation
quasar copied to clipboard

Provide information how to use Quasar with Storybook

Open Seanitzel opened this issue 3 years ago • 16 comments

Is your feature request related to a problem? Please describe. For the past few weeks, I tried multiple times to make my Quasar project work with storybook, to no avail.

It works when no sass variables are used, but storybook fails to compile when it detects that sass variables are used anywhere, with an error about the variable being undefined.

I tried defining them and anything else i could think of, use various webpack sass loaders, import the variables from quasar, and other things that i no longer remember, none worked.

Describe the solution you'd like Any solution to how I can use Quasar with storybook properly.

Describe alternatives you've considered There are no alternatives to storybook that i'm aware of. Storybook is an important of the project's build process.

Additional context I created a reproduction repo of the error i'm getting, based on the Quasar 2 + storybook repo that someone built but fails with the same error when using sass variables.

Edit to be clear: The error message is SassError: Undefined variable.

Reproducttion: https://github.com/Seanitzel/Quasar-V2-Storybook

Seanitzel avatar Dec 12 '21 18:12 Seanitzel