storybook-framework-qwik icon indicating copy to clipboard operation
storybook-framework-qwik copied to clipboard

qwikCityDecorator breaks static build

Open literalpie opened this issue 2 years ago • 2 comments

literalpie avatar Jan 12 '23 00:01 literalpie

I'll dig into this issue next week!

DustinJSilk avatar Jan 13 '23 17:01 DustinJSilk

That would be great! if you don't find an easy solution, I'd also be open to just removing the decorator. But then there's the question of whether a consumer will be able to use qwik-city features if they wrap components in the mock provider on their own. Does your use qwik+storybook use qwik-city? I wonder how common this use-case is.

Also, if it's difficult to make the vite configuration work both with and without qwik-city, we could probably have a storybook addon: storybook-framework-qwik/qwik-city so people can opt-in to the qwik-city stuff only if they need it. (and the addon could apply the decorator automatically)

literalpie avatar Jan 13 '23 18:01 literalpie