You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

将Next.js应用部署至Firebase Hosting时遭遇意外错误求助

部署Next.js到Firebase Hosting报错求助

我正尝试将Next.js应用部署到Firebase Hosting,已遵循官方文档指引,执行命令 firebase deploy --only hosting 时出现错误。

部署错误截图

环境信息

  • 系统:macOS Ventura 13.3.1
  • NPM:9.5.1
  • Node:18.16.0
  • Firebase-cli:11.16.0

firebase.json配置

{
  "hosting": {
    "source": "hosting",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ]
  }
}

package.json配置

{
  "private": true,
  "scripts": {
    "dev": "next",
    "build": "next build",
    "start": "next start"
  },
  "dependencies": {
    "next": "latest",
    "react": "^18.2.0",
    "react-dom": "^18.2.0"
  },
  "devDependencies": {
    "@types/node": "^17.0.43",
    "@types/react": "^18.0.12",
    "@types/react-dom": "^18.0.5",
    "typescript": "^4.7.3"
  }
}

恳请各位提供帮助。

内容的提问来源于stack exchange,提问作者Achraf

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.22 00:05:18