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
start-storybook output is missing colors and progress bar #14620
Comments
|
@ndelangen any idea what's going on here? |
|
@kaiyoma This is literally what the "I'm going to run this on CI, which will log into a plain text log-file, No need for fancy stuff like colors or progress-bars that move the cursor around." If you don't want to progress you can add |
|
Interesting, I already run this with the |
|
I just tried running with and without |
|
Specifying It all seems to be going to stderr (which is possibly related to another issue I filed: #14621) and there's a lot of it: |
|
Whew! I feel less crazy now. |
|
me neither, can you share a reproduction maybe? |
|
I was wrong about the scope of
Something is causing your terminal to no longer respect colors are cursor movements This kind of stuff: https://ss64.com/nt/syntax-ansi.html We use
And the webpack-progress-plugin:
https://webpack.js.org/plugins/progress-plugin/ Which leads to this: At which point I give up understanding what's going on... |
|
For me, the repro is to simply run |
|
@kaiyoma If I try to run |
Run it directly out of |
|
I can't reproduce, using the .bin directly.. I do not have a rush monorepo handy. I likely also doesn't help we're running 2 different operating systems with different terminal applications.. |
|
Yeah, this could be related specifically to running Storybook on Windows 10 with the git bash shell. Storybook is the only command-line tool that's exhibited this kind of behavior. For example, webpack uses a progress bar and colored output and I can run that directly and it's just fine. |
|
@kroeder I know you use storybook and windows 10, have you noticed anything like this? |
|
It does look normal on my windows 10 machine using git-bash Same result in |
|
I can't seem to run Storybook 6.1 because when I do, I get some low-level core-js error that causes the entire thing to bail. Any other versions you want me to try? |
|
I don't know how to move this forwards then. Maybe another user experiencing the same issue can pitch in, and assist in getting a reliable reproduction. |
|
Interesting data point here: I was able to repro this same behavior with pnpm. If I run Basically, it seems that yarn is doing something special that makes the output of tools (on Windows) look and behave correctly, and that behavior isn't replicated by either npm or pnpm. Seems like this is more of a package manager / yarn / TTY issue, and not a Storybook issue. |
|
I can report the same issue with Storybook 6.3.12 on Windows 10 with both Powershell and CMD as well as yarn and npm. Only My workaround is to use https://www.npmjs.com/package/progress-bar-webpack-plugin with |







Describe the bug
start-storybook seems to have some issues with its output, depending on how it's invoked and what package manager is used.
To Reproduce
If I use yarn and run start-storybook through a custom package.json script, then everything is great: the output has colors and the progress bar works. However, if I run start-storybook directly, like this:
then the output is terrible. Colors are gone and instead of a nice progress bar, I get thousands of lines of ugly output:
Expected behavior
The nice output should appear all the time.
System
Additional context
In a Rush.js monorepo (using pnpm instead of yarn), this problem happens all the time, even if I define a custom package.json script and execute it via
rushx. The problem as a whole feels like a package dependency issue. Is Storybook defining its dependencies properly?The text was updated successfully, but these errors were encountered: