Skip to content
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

WARNING in ./node_modules/ws/lib/BufferUtil.js on using of Websocket in storybook #1236

Closed
waheed25 opened this issue Nov 13, 2017 · 6 comments

Comments

@waheed25
Copy link

waheed25 commented Nov 13, 2017

hi, i am using websocket in my config file but after usage of websocket i am getting warnings like that
`
WARNING in ./node_modules/ws/lib/BufferUtil.js
Module not found: Error: Can't resolve 'bufferutil' in '/home/waheed/Projects/Components/node_modules/ws/lib'
@ ./node_modules/ws/lib/BufferUtil.js 35:21-42
@ ./node_modules/ws/lib/PerMessageDeflate.js
@ ./node_modules/ws/lib/WebSocketServer.js
@ ./node_modules/ws/index.js
@ ./dev/client.js
@ ./.storybook/config.js
@ multi ./node_modules/@storybook/react/dist/server/config/polyfills.js ./node_modules/@storybook/react/dist/server/config/globals.js (webpack)-hot-middleware/client.js?reload=true ./.storybook/config.js

WARNING in ./node_modules/ws/lib/Validation.js
Module not found: Error: Can't resolve 'utf-8-validate' in '/home/waheed/Projects/Components/node_modules/ws/lib'
@ ./node_modules/ws/lib/Validation.js 10:22-47
@ ./node_modules/ws/lib/Receiver.js
@ ./node_modules/ws/index.js
@ ./dev/client.js
@ ./.storybook/config.js
@ multi ./node_modules/@storybook/react/dist/server/config/polyfills.js ./node_modules/@storybook/react/dist/server/config/globals.js (webpack)-hot-middleware/client.js?reload=true
./.storybook/config.js
`
i just want to remove these warnings on my console .how can i remove these warnings.

@lpinca
Copy link
Member

lpinca commented Nov 13, 2017

Duplicate of #1220. See discussion there.

@waheed25 waheed25 reopened this Nov 13, 2017
@waheed25
Copy link
Author

but this is not in webpack this in storybook

@lpinca
Copy link
Member

lpinca commented Nov 13, 2017

Those warnings are created by webpack which is used by storybook. If you are using ws directly you should add a shim for it like this and add it to your package.json using the browser key.

@WQHASH
Copy link

WQHASH commented Nov 13, 2017

What's the recommendation for learning WebSockets?

@lpinca
Copy link
Member

lpinca commented Nov 13, 2017

Closing as there is not much we can do about this.

@lpinca lpinca closed this as completed Nov 13, 2017
@svngoku
Copy link

svngoku commented Jan 17, 2018

That's not a real warning! You can forget it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants