Setting up socket

Hello a while a go i used socket.io and it looks like it has changed ago and i am just trying to set up a basic thing

image

also has error:
(function (exports, require, module, __filename, __dirname) { import { Server } from “socket.io”;
^^^^^^
SyntaxError: Unexpected token import

maybe your node.js version changed. if you didn’t change anything, it’s probably from some versions being removed. can you try updating the engines.node in your package.json

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.