Deployment error. Build failed: src/index.js does not exist;

375 Views Asked by At

This drives me crazy - I'm getting the below error during firebase deploy (click the image to enlarge):

enter image description here

package.json

{
    "engines": {
        "node": "10"
    },
    "main": "src/index.js",
    ...
}

The index.js does exist under the src folder.

I tried to change the path in "main" to a fake path and then it fails before deployment which is expected.

However with the "main": "src/index.js" it actually starts to deploy and fails much later during the process as shown on the screenshot above.

What am I missing here?

I'm using firebase-tools v8.12.0

1

There are 1 best solutions below

0
On BEST ANSWER

Please, check build steps and your functions configuration in firebase.json.