Ws: WARNING in ./node_modules/ws/lib/BufferUtil.js on using of Websocket in storybook

Created on 13 Nov 2017  路  6Comments  路  Source: websockets/ws

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.

Most helpful comment

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

All 6 comments

Duplicate of #1220. See discussion there.

but this is not in webpack this in storybook

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.

What's the recommendation for learning WebSockets?

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pacmac picture pacmac  路  3Comments

nabeelio picture nabeelio  路  5Comments

bartosz-m picture bartosz-m  路  3Comments

ORESoftware picture ORESoftware  路  3Comments

Globik picture Globik  路  3Comments