Storybook: Error: read ECONNRESET on react-native when i refresh storybook-native browser tab with react-native 0.53

Created on 6 Feb 2018  路  7Comments  路  Source: storybookjs/storybook

Issue details

refreshing browser window crashes storybook-native with latest storybook version and react-native 0.53

Steps to reproduce

  • start storybook storybook start -p 7007
  • open app on device
  • open chrome tab on localhost:7007
  • refresh that tab with cmd+r
  • storybook will crash with "Error: read ECONNRESET"

Please specify which version of Storybook and optionally any affected addons that you're running

  • @storybook/react-native": "^3.3.12"
  • react-native: 0.53.0
events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: read ECONNRESET
    at _errnoException (util.js:1024:11)
    at TCP.onread (net.js:615:25)
error Command failed with exit code 1.
react-native merged

Most helpful comment

Thank you guys!
I can confirm it works for us in newsuk/times-components.

All 7 comments

Same here and I can't figure out what's causing it.
Something hot reload?

Environment:
  OS: macOS High Sierra 10.13.2

Packages: (wanted => installed)
  react: 16.2.0 => 16.2.0
  react-native: 0.53.0 => 0.53.0

"@storybook/react-native": "3.3.12"

same thing,
also did experience same behaviour on react-native 0.52

I was able to work around this bug by forcing ws package to version3.3.2.
I've used yarn resolutions to accomplish this.

further information: https://github.com/websockets/ws/issues/1256

Many thanks @nikhedonia the ws downgrade seems to have worked a treat for me.
Also thanks for the link to the underlying issue documenting the change in ws error behaviour in 3.3.3

Released 3.3.14

@axelnormand you can remove the downgrade now

Thank you guys!
I can confirm it works for us in newsuk/times-components.

works great. Many thanks @Hypnosphi !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shilman picture shilman  路  3Comments

tomitrescak picture tomitrescak  路  3Comments

ZigGreen picture ZigGreen  路  3Comments

purplecones picture purplecones  路  3Comments

Jonovono picture Jonovono  路  3Comments