Open xxxKOTxxx opened 1 year ago
P.S. after checking Your documentation I have another question: do You support Stylus at all? There is totally nothing about it - just issues regarding webpack.
@xxxKOTxxx possibly fixed in 7.0.24 by https://github.com/storybookjs/storybook/pull/22486 which claims to fix stylus support. we don't explicitly support stylus, but under the hood storybook is just webpack or vite, both which I assume support stylus, which means that you should be able to get support by configuration.
cc @Integrayshaun
Thanks for reply! I'll wati for release to check is it works now!
7.0.24
When do You plan to release this version?
Tested - no changes. I'll try to migrate on webpack and try solutions for it.
Tested on 7.0.25 - no progress
For those who also has problem with stylus, as workaround I can propose t use patch-package package to patch node_modules/@storybook/core-common/dist/index.js
file untill PR wiill be released in Storybook.
Just replace
...hookIgnoreNodeModules:!1,tsconfigRaw:...
with
...hookIgnoreNodeModules:!1,keepNames:true,tsconfigRaw:...
and follow package documentation
Describe the bug
I'm using
Nx
monorepo withStylus
CSS preprocesor andStorybook
v7 withVite
bundler.My goal is to use shared styles library for
React
andVue3
UI components library. I've solved bundling issue with This solution and my libraries pass build process with@import
resolving totally fine. ButStorybook
fails independent of configuration.In frontend i got:
TypeError: Failed to fetch dynamically imported module: ...
in console:How can I fix this issue?
To Reproduce
Looks like any usage of
@import ...
in stylus file or Vue styles section causes issue. All projects are generated withNx
librarySystem
Additional context
No response