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
Building storybook locally error: _ws.WebSocketServer #16969
Comments
Removing the core: builder config and the two packages below, resolved the issue.
|
@StuartMorris0 I'm still seeing this error with both |
You could try the ol' |
Can you re-open this ticket? I've upgraded all of my dependencies to I've tried nuking my node_modules and re-installing, but it didn't fix anything :/ If I remove the |
We have the same problem in our codebase where we're not using webpack5 or these two packages. Multiple removal of |
Do you a have a reproduction repo you can share? If not, can you create one? See how to create a repro. Thank you! 🙏 |
I'm also experiencing this same error.
|
I was able to move past this error by forcibly installing the latest version of
|
By itself, this didn't work for me. After doing a big of digging, I found that someone had setup a |
|
+1 for |
I also just ran into this! Same thing, wiping node_modules and reinstalling worked. I think it was a yarn / lerna hoisting issue for me |
Describe the bug
When trying to run storybook locally with
yarn storybook
the following error occurs.Referenced here: node_modules/@storybook/react/node_modules/@storybook/core-server/dist/cjs/utils/get-server-channel.js:22:28)
To Reproduce
Storybook appears to build and run correctly with the
build-storybook
command, just running our localstart-storybook
causes the above error. I've tried running on node 14/16 and both cause the same error.System
Environment Info:
System:
OS: macOS 11.4
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 16.2.0 - ~/.nvm/versions/node/v16.2.0/bin/node
Yarn: 1.22.10 - ~/.nvm/versions/node/v16.2.0/bin/yarn
npm: 7.13.0 - ~/.nvm/versions/node/v16.2.0/bin/npm
Browsers:
Chrome: 96.0.4664.93
Firefox: 88.0.1
Safari: 14.1.1
npmPackages:
@storybook/addon-a11y: ^6.4.9 => 6.4.9
@storybook/addon-actions: ^6.4.9 => 6.4.9
@storybook/addon-docs: ^6.4.9 => 6.4.9
@storybook/addon-essentials: ^6.4.9 => 6.4.9
@storybook/addon-jest: ^6.4.9 => 6.4.9
@storybook/addon-links: ^6.4.9 => 6.4.9
@storybook/builder-webpack5: ^6.4.9 => 6.4.9
@storybook/manager-webpack5: ^6.4.9 => 6.4.9
@storybook/node-logger: ^6.4.9 => 6.4.9
@storybook/preset-create-react-app: ^3.2.0 => 3.2.0
@storybook/react: ^6.4.9 => 6.4.9
@storybook/storybook-deployer: ^2.8.10 => 2.8.10
Additional context
This occurs after a SB upgrade from .3 > .4
The following configuration is used in our main.js
The text was updated successfully, but these errors were encountered: