-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aftre install package next utils.js error #9
Comments
The problem ist the patch expects next-plugin-websocket/src/patch.ts Line 72 in 8d9e3e5
new NextServer({ is located now and target this file instead, also helpful would be an error if the line was not found.
Just my thoughts (next.js version 13.4.2) |
Actually, for for next 13.4.10 it works without this patch (but requires patch from #6). It seems they just added httpServer there. Currently I just use this yarn patch: .yarn/patches/next-plugin-websocket-npm-0.1.2-0ca3921bb0.patch
|
Actually there is problem with standalone server (this vercel/next.js#44209) |
Was anyone able to make this (or any other workaround) work for Next.js 14? |
yarn run v1.22.19
$ next
D:\Dev\nextjs_ws_apollo\node_modules\next\dist\build\utils.js:1
"httpServer: server,
^^^^^^^^^^^^^^^^^^^^
SyntaxError: Invalid or unexpected token
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1176:20)
at Module._compile (node:internal/modules/cjs/loader:1218:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (D:\Dev\nextjs_ws_apollo\node_modules\next\dist\build\worker.js:13:14)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
Node.js v18.16.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
The text was updated successfully, but these errors were encountered: