react-styleguidist: main.bundle.js is not loading in watch mode

I am experiencing some issues with the development server. When starting the server with styleguidist server I wait until the message Compiled successfully appears, and open localhost:6060 in my browser as I am told to. But then the browser loads the main.bundle.js file forever, until it fails without further notice:

screenshot from 2018-01-02 14-22-46 (It is not visible, but when I am closing the right handside with the status information Status of the line in the chrome dev tools simply says (failed))

I am using webpack version 3.10 and react-styleguidist 6.10. I’ve also tried to reproduce with your Demo Project but it seems to be working there. I have no idea for what I should look now.

My current operating system is ArchLinux (but it also happened on my previous mac osx installation) and this is happening in both chromium and firefox. The styleguide config I am using is in the sulu/sulu repository.

I really have no idea what I should be looking for, so I appreciate any kind of help.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (5 by maintainers)

Most upvoted comments

Hi, did you solve the problem? I have similar problem when running styleguide inside docker (via docker-compose).

It loads main.bundle.js for about 50 seconds. When I reload the page it looks like it transpiles it again.

Without docker it is loaded in half a second.

What is weird that after some time (few minutes) it loads quickly also in Docker image. I don’t understand it…

kapture 2018-10-03 at 13 27 34

You can check that yourself and have a correct answer instead of asking someone else to guess.

I don’t know if this will help you but I am using lerna to manage the components version, in order to fix this issue I used the --hoist option which is basically the same as npm link.