deepstreamIO / deepstream.io-client-js

The Browser / Node.js Client for deepstream.io
Other
294 stars 109 forks source link

NextJS 13 - PNPM - bufferuntil #586

Closed ScreamZ closed 1 year ago

ScreamZ commented 1 year ago

Hello,

using nextjs 13.1.1 when I use the SDK I get this on the frontend I'm using PNPM as package manager

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
event - compiled client and server successfully in 1069 ms (164 modules)
wait  - compiling / (client and server)...
warn  - ../../node_modules/.pnpm/ws@7.5.9/node_modules/ws/lib/buffer-util.js
Module not found: Can't resolve 'bufferutil' in '/Users/screamz/dev-workspace/pro/livecorp/freakshow/node_modules/.pnpm/ws@7.5.9/node_modules/ws/lib'

../../node_modules/.pnpm/ws@7.5.9/node_modules/ws/lib/validation.js
Module not found: Can't resolve 'utf-8-validate' in '/Users/screamz/dev-workspace/pro/livecorp/freakshow/node_modules/.pnpm/ws@7.5.9/node_modules/ws/lib'

How am i supposed to remove this warning ? Everything seems to work

jaime-ez commented 1 year ago

Thats a webpack issue mostly, check these possible solutions:

https://github.com/netlify/netlify-lambda/issues/179 https://github.com/websockets/ws/issues/1126

if those webpack config solutions don't work, try installing as suggested here: https://github.com/deepstreamIO/deepstream.io-client-js#install-in-react-native

let me know if it helps

jaime-ez commented 1 year ago

closing due to inactivity, please reopen if issue persists