I need to deploy my project to firebase, I need to deploy some functions too: the command firebase deploy starts working correctly but ends with the error in the title, I run npm install in the main directory and in the functions directory too, but the error is the same.
0
votes
1 Answers
0
votes
Can you try to change your firebase.json
to:
{
"database": {
"rules": "database.rules.json"
},
"functions": {
"source": "functions",
"predeploy": [
"npm --prefix \"$RESOURCE_DIR\" run lint",
"npm --prefix \"$RESOURCE_DIR\" run build"
]
},
"hosting": {
"public": "www",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
},
"storage": {
"rules": "storage.rules"
}
}
firebase.json
file with use. It should be in your root folder. – Tarik Huberfunctions
part in the json the path to your functions fodler like"source":"functions"
. And yould you share the complete log when you deploy. Also the parts before the error. – Tarik Huberfunctions
folder can't be found. But the data you send is not yourfirebase.json
file. Could you share that with me. It's just the conifguration for firebase where stuff is. Could you also make a screenshot of your root folder. – Tarik Huber