React-styleguidist: Cannot run styleguidist along side with laravel development server.

Created on 30 Aug 2017  路  10Comments  路  Source: styleguidist/react-styleguidist

Hello folks,

I am trying to document my __React Components__ and I am running _styleguidist server_ along side with _Laravel development server_ but the _styleguidist server_ crashes with this error.

You have another server running at port 6060 somewhere, shut it down first

You can change the port using the `serverPort` option in your style guide config:
https://react-styleguidist.js.org/docs/configuration.html

I have configured the _styleguidist server_ to run at port _6060_ as to resolve this issue and succeeded to run the server only once. After that I am getting this issue again.

How can i resolve this??

question

All 10 comments

Looks like you still have something running on this port. Or the previous Node process stuck for some reason.

Try to check which process is listening on this port and kill it.

@sapegin I tried checking the service running on this port but it returns nothing... It seems there are no services running on this port. I tried even changing the port number but still no luck.

@besrabasant Can you try to update to the latest version that runs on 8080 and try again please ?

@SaraVieira Latest version of what? ;-|

I think there's a conflict while running two instances of browsersync.... @sapegin @SaraVieira

Looks it鈥檚 not related to Styleguidist then?

actually styleguidist uses projects native webpack configuration and since laravel is already using that configuration to run its _browsersync devserver_ so react-styleguidist is having problem running the _browsersync devserver_ from same configuration. @sapegin

I think I need to change the _port_ on whichreact syleguidist is trying to run the _browsersync server_

Maybe you need to tweak your webpack configuration before passing it to Styleguidist and remove BrowserSync?

Yeah resolved the issue by ignoring the browser-sync-webpack-plugin after requiring the project's _webpack configuration_ in _styleguidist configuration_. @sapegin @SaraVieira

Was this page helpful?
0 / 5 - 0 ratings