Module not found: Can't resolve 'utf-8-validate' and 'bufferutil' , socket.io-client/app router
Unanswered
Rhinelander posted this in #help-forum
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:
Error messages:
-
-
Current Next.js config:
Version numbers:
socket.io-client: 4.7.1next: 13.4.9Error 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