I'm trying to use socket.io for my react/flask project and every time I require socket.io in my app.js file, node fails to compile and I get this message.
Failed to compile.
./node_modules/engine.io/lib/server.js
Module not found: Can't resolve 'uws' in 'C:\Users\Walker\Desktop\xxxxx\xxxxx\node_modules\engine.io\lib'
I've tried manually installing uws with node, but nothing changes. I also used create-react-app on another computer and installed socket.io but I'm getting the same error. I followed many 'Getting Started' articles but I'm continuously getting the same error. Anyone know what could be wrong?
uws,nodeandnpmversions? - Suresh Prajapatiuwsditched the repo. reddit.com/r/node/comments/91kgte/uws_has_been_deprecated - Khanh Hua