Next.js Discord

Discord Forum

Module not found: Can't resolve 'utf-8-validate' and 'bufferutil' , socket.io-client/app router

Unanswered
Rhinelander posted this in #help-forum
Open in Discord
RhinelanderOP
Hi, I'm having trouble with Next.js 13 and socket.io-client. The error happens when I make a GET request to my index page (where I initialize the client instance for socket.io). I'd appreciate any help on this issue, thank you.

Version numbers:
socket.io-client: 4.7.1
next: 13.4.9

Error messages:
- Module not found: Can't resolve 'utf-8-validate'
- Module not found: Can't resolve 'bufferutil'

Current Next.js config:
/** @type {import('next').NextConfig} */
const nextConfig = {
  experimental: {
    appDir: true
  }
}

module.exports = nextConfig

0 Replies