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.
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
Most helpful comment
That's not a real warning! You can forget it