Next.js Discord

Discord Forum

headers.getSetCookie is not a function or its return value is not iterable

Unanswered
borghese posted this in #help-forum
Open in Discord
I know this was a known error in version 13.4.4 as seen on some stackoverflow posts, but for some reason i still get that error on version 14.2.1...
This happened while trying to deploy but it seems like nothing is working

What Ive tried:
- Updating node to v20.12.1
- npm update after updating node
- npm i @types/node

Nothing seems to work

Here's the package.json (on prod):
{
  "name": "next-apms",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev -p 80",
    "build": "next build",
    "start": "next start -p 80",
    "lint": "next lint"
  },
  "dependencies": {
    "@mantine/core": "^7.10.0",
    "@mantine/dates": "^7.8.0",
    "@mantine/form": "^7.8.0",
    "@mantine/hooks": "^7.8.0",
    "@mantine/modals": "^7.9.1",
    "@mantine/notifications": "^7.8.0",
    "@mui/icons-material": "^5.15.15",
    "@tabler/icons-react": "^3.2.0",
    "axios": "^1.6.8",
    "clsx": "^2.1.1",
    "dayjs": "^1.11.10",
    "dotenv": "^16.4.5",
    "framer-motion": "^11.2.6",
    "mongodb": "^6.5.0",
    "next": "^14.2.1",
    "next-auth": "^5.0.0-beta.16",
    "react": "^18",
    "react-dom": "^18",
    "tailwind-merge": "^2.3.0"
  },
  "devDependencies": {
    "@types/node": "20.12.13",
    "@types/react": "18.2.75",
    "@types/web": "^0.0.147",
    "autoprefixer": "^10.0.1",
    "eslint": "^8",
    "eslint-config-next": "14.1.4",
    "postcss": "^8.4.38",
    "postcss-preset-mantine": "^1.14.4",
    "postcss-simple-vars": "^7.0.1",
    "tailwindcss": "^3.3.0"
  }
}

0 Replies