You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Styleguidist's dev server does not output errors into terminal and needs to be fully restarted if build fails. It often happens after a silly mistake such as "const variable =" and it is very annoying, because when I make such mistake before I build styleguide, I have no error output at all and no notification that the build failed. I noticed that this might be caused by my packages and their dependencies that we use in our project.
To reproduce
I was able to create repro of the crash when build fails, but I was not able to reproduce the output not coming to the terminal (I did not focus that much on this part, since it is covered in #1822).
git clone https://github.com/tomas-hartman/example.git
git checkout bug
npm install
npm run start
# 1. wait for 'compiled successfully'# 2. go to src/components/Button.tsx and uncomment L36, save and let styleguide rebuild# 3. check localhost:6060 (blank page with error in browser console)# 4. comment L36 and save# 5. dev server crashed, no rebuild happened
Expected behavior
Everything should work exactly like in master branch of the example:
I expect that I don't need to restart dev-server after trivial build fail
I expect that all errors are still outputed into terminal (not visible in enclosed repro)
I suppose that this might be caused by mutually incompatible dependencies, but I am not sure of that.
It also might be related to #1822, #1785 and (perhaps) #1703.
The text was updated successfully, but these errors were encountered:
tomas-hartman
changed the title
Build fail crashes styleguide dev server (and doesn't show errors)
Failing build crashes styleguide dev server (and doesn't output errors)
Jun 25, 2021
😴 This issue has been automatically marked as stale because it has not had recent activity. It will be closed in a week without any further activity. Consider opening a pull request if you still have this issue or want this feature.
Current behavior
Styleguidist's dev server does not output errors into terminal and needs to be fully restarted if build fails. It often happens after a silly mistake such as "const variable =" and it is very annoying, because when I make such mistake before I build styleguide, I have no error output at all and no notification that the build failed. I noticed that this might be caused by my packages and their dependencies that we use in our project.
To reproduce
I was able to create repro of the crash when build fails, but I was not able to reproduce the output not coming to the terminal (I did not focus that much on this part, since it is covered in #1822).
Expected behavior
Everything should work exactly like in
master
branch of the example:I suppose that this might be caused by mutually incompatible dependencies, but I am not sure of that.
It also might be related to #1822, #1785 and (perhaps) #1703.
The text was updated successfully, but these errors were encountered: