I'm in a bit of a bind and have a very weak background in web development. Recently, I've had to take over the work of a colleague who left and have been studying web development and learning all of the tools while trying to finish the site we were working on. The project uses webpack and react, and I was trying to add in redux when everything went wrong. I updated webpack and some plugins to the most recent versions …
我正在使用 Next js 对我的应用程序进行服务器端渲染。但是,我还需要连接到使用 websockets 的 Gamesparks 库(用于身份验证)。每次我尝试将我的脚本添加到 head 标签时,我都会收到它不工作的错误。是否可以在 Next js 中使用 websockets?我已经看到很多关于 socket io 的内容,并且正在考虑它,但是我必须重新编写附加的库。我也很好奇,我应该尝试做我自己的后端 Express 服务器来管理这些连接吗?
正如您可能会说的,我是网络开发的新手,因此将不胜感激任何资源或建议!
来自浏览器的错误信息是http://localhost:3000/gamesparks/gamesparks-rt.js net::ERR_ABORTED 404 (Not Found)