After yarn build, yarn start gives error message
Unanswered
Giant Angora posted this in #help-forum
Giant AngoraOP
TypeError: Cannot read properties of undefined (reading 'bind')
at NextNodeServer.handleRequestImpl (/Users/callumhall/Desktop/Work//*/*/node_modules/next/dist/server/base-server.js:388:50)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
I've deleted node modules, .next, yarn.lock and still get this issue. Has anyone seen this before?
Edit Build completes successfully also.
at NextNodeServer.handleRequestImpl (/Users/callumhall/Desktop/Work//*/*/node_modules/next/dist/server/base-server.js:388:50)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
I've deleted node modules, .next, yarn.lock and still get this issue. Has anyone seen this before?
Edit Build completes successfully also.
11 Replies
does this happen in a new project? If not then try checking to see places where you are binding to functions to buttons etc
Giant AngoraOP
No it's on a large project. Never had this issue before. The bind function is within the .next directory, base-server.js
comes with the next package
Thats the stack trace. It doesnt really mean the error is happening there
something might be triggering it lower down the stack
also try updating to the latest version or the canary version
(
npm i doesnt update dependecies, npm update does)Giant AngoraOP
npm update does not work.. hmm. The funny thing is, I went back to a stable version of our app, integrated my changes manually, and still have this issue. 

Arguments:
/usr/local/bin/node /usr/local/bin/yarn add @13.4.3
PATH:
/Users/callumhall/.bun/bin:/Users/callumhall/anaconda3/bin:/Users/callumhall/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Applications/Postgres.app/Contents/Versions/latest/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
Yarn version:
1.22.19
Node version:
18.16.1
Platform:
darwin arm64
Trace:
Error: https://registry.yarnpkg.com/@13.4.3: Request "https://registry.yarnpkg.com/@13.4.3" returned a 405
at params.callback [as _callback] (/usr/local/lib/node_modules/yarn/lib/cli.js:66154:18)
at self.callback (/usr/local/lib/node_modules/yarn/lib/cli.js:140890:22)
at Request.emit (node:events:513:28)
at Request.<anonymous> (/usr/local/lib/node_modules/yarn/lib/cli.js:141862:10)
at Request.emit (node:events:513:28)
at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/yarn/lib/cli.js:141784:12)
at Object.onceWrapper (node:events:627:28)
at IncomingMessage.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)npm update after setting "next": canary in package.json
Giant AngoraOP
I've just seen a yarn.error log here