0
votes

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.

1
Can you share your firebase.json file with use. It should be in your root folder.Tarik Huber
Could you try to add to the functions 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 Huber
It looks like your functions folder can't be found. But the data you send is not your firebase.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

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