As shown in the images, there is an error with .bind.
I've done some testing, making a new nextjs project.
in the brand new project the SOCKET endpoint works fine. The problem only happens when I have a middleware.ts file.
It happens even when middleware.ts is completely empty.
As shown in the images, there is an error with .bind.
I've done some testing, making a new nextjs project. in the brand new project the SOCKET endpoint works fine. The problem only happens when I have a middleware.ts file. It happens even when middleware.ts is completely empty.