Achraf
Achraf

Reputation: 149

Unexpected error while deploying Nextjs app to firebase hosting

I am trying to deploy Nextjs app to firebase hosting , I have followed the instructions from documentation , then I run the following command :

firebase deploy --only hosting

And I got this error

enter image description here

Environment

System : 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"
  }
}

Any help is much appreciated.

Upvotes: 0

Views: 117

Answers (1)

Achraf
Achraf

Reputation: 149

I solved the issue by upgrading firebase-cli to version 11.29.1

Upvotes: 0

Related Questions