Next.js Discord

Discord Forum

I'm getting error when starting development server

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
TypeError: cookies is not iterable
at get [headers map sorted] (node:internal/deps/undici/undici:1844:34)
at node:internal/deps/undici/undici:1865:43
at Headers Iterator.next (node:internal/deps/undici/undici:1108:26)
at toNodeOutgoingHttpHeaders (C:\Users\sami-\frontend\Jobs\music-platform\node_modules\next\dist\server\web\utils.js:106:31)
at handleRoute (C:\Users\sami-\frontend\Jobs\music-platform\node_modules\next\dist\server\lib\router-utils\resolve-routes.js:301:89)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async resolveRoutes (C:\Users\sami-\frontend\Jobs\music-platform\node_modules\next\dist\server\lib\router-utils\resolve-routes.js:483:28)
at async handleRequest (C:\Users\sami-\frontend\Jobs\music-platform\node_modules\next\dist\server\lib\router-server.js:320:102)
at async requestHandler (C:\Users\sami-\frontend\Jobs\music-platform\node_modules\next\dist\server\lib\router-server.js:464:13)
at async Server.<anonymous> (C:\Users\sami-\frontend\Jobs\music-platform\node_modules\next\dist\server\lib\start-server.js:117:13)


I'm not sure what could be the problem because I was only setting up boilerplate, the only thing i setup that might be the cause of the issue is Next-intl

5 Replies

European sprat
What node version?
Northeast Congo LionOP
{
"name": "music-platform",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "prisma generate && next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@prisma/client": "^5.2.0",
"@types/node": "20.5.3",
"@types/react": "18.2.21",
"@types/react-dom": "18.2.7",
"autoprefixer": "10.4.15",
"eslint": "8.47.0",
"eslint-config-next": "13.4.19",
"next": "13.4.19",
"next-intl": "3.0.0-beta.11",
"postcss": "8.4.28",
"react": "18.2.0",
"react-dom": "18.2.0",
"tailwindcss": "3.3.3",
"typescript": "5.1.6"
},
"devDependencies": {
"prisma": "^5.2.0"
}
}

This is my package.json
European sprat
node --version
Northeast Congo LionOP
Oh mb, it's v19.6.1
European sprat
What files are you accessing cookies() in?