After firebase deploy in flutter web I get this error: 
In this answer person recommends firebase init, but I already have Firebase in the app. Thanks for any ideas!
After firebase deploy in flutter web I get this error: 
In this answer person recommends firebase init, but I already have Firebase in the app. Thanks for any ideas!
I came across this issue with a custom build process and pointing only to my dist folder.
There are three requirements for a successful build:
firebase.json with functions.source pointing to a directory containing a package.jsonpackage.json containing a "main":"path-to-index.js" field.package.json or firebase.json//firebase.json
{
"functions": {
"source": "./some-dir"
}
}
//some-dir/package.json
{
"main": "lib/index.js",
"engines": {
"node": "16"
}
}