-
-
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
[7.0 alpha] webpack stylus loader doesn't work anymore #19049
Comments
Just confirming this is still an issue in |
One of the main differences between 6.5 and 7.0 is that 6.5 is webpack4 by default and 7.0 is webpack5 only. Is the version of https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#webpack4-support-discontinued |
Yes, it's webpack5-compatible. I'm using the latest version and my main app build is using webpack 5. |
I'm having the same issue on |
I created a reproduction repository using Storybook 7.0.2. https://github.com/AumyF/repro-storybook7-stylus
The implementation of When the compiler couldn't find a method corresponding to an AST node it just returns the AST object instead of compiled CSS source string. It's passed to the latter loader (typically It was not clear why the variable names were rewritten only on Storybook 7. |
Can confirm this is also happening when the builder is |
Issue still exists as of Storybook 7.0.7 - can anyone think of any workarounds (using webpack 5)? |
I think I may found the issue causing it. this is where to set |
Hi. Is there any updates about stylus + vue + vite build for this issue? I have troubles with vue-vite build and stylus styles |
I have downgraded storybook version to 6.5.16 and it solved my problem. |
Just tried 7.0.23 which has the PR that should fix the problem but I'm still getting the error. Is there some setting or flag I need to enable first? |
@youngboy if the PR doesn't address this issue, we should probably revert the PR.? |
Hi, the PR resolves the issue, but it looks like it's not present in the code when using (see |
Will be part of #23185 |
Unfortunately the issue is still happening for me with v7.0.24. I've updated the repro repo here: https://github.com/EvHaus/storybook-7-stylus-bug |
seems there are two issues here
Maybe by default storybook should turn keepNames off, and expose a configuration option to turn it on, more info see vitejs/vite#2376 (comment) |
I've retried to build an app w/ Stylus on Storybook v7.6.4, and it all worked. |
Describe the bug
After upgrading from 6.5.10 to 7.0.0-alpha.26 I'm running into an issue with
stylus-loader
. When starting Storybook, I get this failure:The loader that causes this issue is:
This problem doesn't happen with the same configuration on Storybook 6.5.10.
To Reproduce
yarn
to install dependencies and then runyarn storybook
. The output in the terminal will be:System
Additional context
N/A
The text was updated successfully, but these errors were encountered: