bytebuffer have problem on next.js

#4 · closed · 2 comments

View on GitHub ↗

piyanggoon

Module not found: Can't resolve 'memcpy' in 'xxx/node_modules/bytebuffer/dist' Import trace for requested module: ./node_modules/bytebuffer/dist/bytebuffer-node.js ./node_modules/websocket13/dist/streams/StreamedOutgoingMessage.js ./node_modules/websocket13/dist/index.js ./node_modules/steam-session/dist/transports/WebSocketCMTransport.js ./node_modules/steam-session/dist/LoginSession.js ./node_modules/steam-session/dist/index.js ./node_modules/steamcommunity/components/login.js ./node_modules/steamcommunity/index.js ./src/app/api/steam/tradeurl/route.ts

Comments

piyanggoon

problem is bytebuffer use memcpy i try npm install by external project still build fail, i try set memcpy = null and link all package-lock.json to my own file it can compile without error.

DoctorMcKay

websocket13 does not work in the browser. Use the regular WebSocket constructor.