bug: The default firestore.json file generates an array of functions
kleber-swf opened this issue · comments
Kleber Lopes da Silva commented
Describe the Bug
Firebase 11.19.0 (dec/2022): running firebase init
with functions setup generates the following snippet:
"functions": [
{
"source": "functions",
"codebase": "default",
"ignore": ["node_modules", ".git", "firebase-debug.log", "firebase-debug.*.log"]
}
],
...
which is an array. The adapter expects an object.
Steps to Reproduce
- run
firebase init
and make sure you selected to setup firebase functions - run
npm run build
- The following error will throw:
Error: Required "functions.source" field is missing from Firebase Configuration file.
Expected Behaviour
The adapter should accept this default configuration. Probably this will be the default to now on.
svelte-adapter-firebase version
0.14.4
sveltejs/kit version
1.0.1
symbolicsorcerer commented
The fix is in main but not released. As a workaround in the meantime for folks, you can update package.json:
"svelte-adapter-firebase": "git://github.com/jthegedus/svelte-adapter-firebase.git#a18d29b",