Reputation: 149
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
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