Original error: Invariant: Missing 'next-action' header

정은경·2024년 4월 5일
0

👸 Front-End Queen

목록 보기
265/266

배포 환경

  • NextJS 14
// package.json
{
  "name": "frontend",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "build": "next build",
    "dev": "next dev",
    "lint": "next lint",
    "start": "next start"
  },
  "dependencies": {
    "@headlessui/react": "^1.7.18",
    "@heroicons/react": "^2.1.1",
    "dayjs": "^1.11.10",
    "next": "^14.0.0",
    "qs": "^6.11.2",
    "react": "^18",
    "react-dom": "^18",
    "react-icons": "^5.0.1",
    "react-markdown": "^9.0.1",
    "react-slick": "^0.30.2",
    "remark-gfm": "^4.0.0",
    "sass": "^1.72.0",
    "slick-carousel": "^1.8.1"
  },
  "devDependencies": {
    "@types/node": "^20",
    "@types/qs": "^6.9.9",
    "@types/react": "^18",
    "@types/react-dom": "^18",
    "@types/react-slick": "^0.23.13",
    "autoprefixer": "^10.0.1",
    "postcss": "^8",
    "tailwindcss": "^3.3.0",
    "typescript": "^5"
  }
}

에러메시지

[오후 1:07] 변지훈
Apr  5 04:02:11 ip-172-31-54-62 web[3691]: Error: Failed to find Server Action "null". This request might be from an older or newer deployment. Original error: Invariant: Missing 'next-action' header.

Apr  5 04:02:11 ip-172-31-54-62 web[3691]:    at ry (/var/app/current/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:16:1666)

Apr  5 04:02:11 ip-172-31-54-62 web[3691]:    at /var/app/current/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:7035

Apr  5 04:02:11 ip-172-31-54-62 web[3691]:    at AsyncLocalStorage.run (node:async_hooks:346:14)

Apr  5 04:02:11 ip-172-31-54-62 web[3691]:    at rm (/var/app/current/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:15:6350)

Apr  5 04:02:11 ip-172-31-54-62 web[3691]:    at rq (/var/app/current/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:18:1255)

Apr  5 04:02:11 ip-172-31-54-62 web[3691]:    at /var/app/current/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:18:3935

Apr  5 04:02:11 ip-172-31-54-62 web[3691]:    at AsyncLocalStorage.run (node:async_hooks:346:14)

Apr  5 04:02:11 ip-172-31-54-62 web[3691]:    at Object.wrap (/var/app/current/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:13:16239)

Apr  5 04:02:11 ip-172-31-54-62 web[3691]:    at /var/app/current/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:18:3825

Apr  5 04:02:11 ip-172-31-54-62 web[3691]:    at AsyncLocalStorage.run (node:async_hooks:346:14)

Reference

profile
#의식의흐름 #순간순간 #생각의스냅샷

0개의 댓글