小编Arj*_*jun的帖子

Next.js 错误找不到模块“next/headers”

当我在小组项目中使用我的队友开发的登录功能时遇到了这个问题,显然我是唯一面临这个问题的人。

npm 版本:8.19.3 节点版本:16.17.0

package.json :-

{
  "name": "frontend",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "npm run prettify && next dev",
    "build": "npm run prettify && next build",
    "start": "next start",
    "lint": "npm run prettify && next lint",
    "prettify": "prettier --write \"**/*.{js, jsx}\""
  },
  "dependencies": {
    "@emotion/react": "11.10.4",
    "@emotion/server": "11.10.0",
    "@emotion/styled": "11.10.4",
    "@mui/icons-material": "5.10.6",
    "@mui/material": "5.10.6",
    "@mui/x-date-pickers": "^5.0.3",
    "cryptr": "^6.0.3",
    "dayjs": "^1.11.5",
    "intl": "^1.2.5",
    "mui-file-dropzone": "^4.0.2",
    "next": "12.2.5",
    "next-auth": "^4.12.0",
    "normalize.css": "^8.0.1",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-share": "^4.4.1",
    "react-toastify": …
Run Code Online (Sandbox Code Playgroud)

node.js reactjs next.js next-auth

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

next-auth ×1

next.js ×1

node.js ×1

reactjs ×1