-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Stylus @import causes error #23147
Comments
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 #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. |
Thanks for reply! I'll wati for release to check is it works now!
When do You plan to release this version? |
Tested - no changes. |
With webpack5 also problem described here |
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
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
The text was updated successfully, but these errors were encountered: