You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running npm run build I get the following error:
error during build:
Error: Error: Required "functions.source" field is missing from Firebase Configuration file.
at parseFirebaseConfiguration (file:///Users/pieterseegers/Documents/Websites/Avatary/avatary/node_modules/svelte-adapter-firebase/src/utils.js:164:9)
at adapt (file:///Users/pieterseegers/Documents/Websites/Avatary/avatary/node_modules/svelte-adapter-firebase/src/index.js:26:35)
at adapt (file:///Users/pieterseegers/Documents/Websites/Avatary/avatary/node_modules/@sveltejs/kit/src/core/adapt/index.js:28:8)
at Object.handler (file:///Users/pieterseegers/Documents/Websites/Avatary/avatary/node_modules/@sveltejs/kit/src/exports/vite/index.js:611:12)
at async PluginDriver.hookParallel (file:///Users/pieterseegers/Documents/Websites/Avatary/avatary/node_modules/rollup/dist/es/shared/rollup.js:23582:17)
at async Object.close (file:///Users/pieterseegers/Documents/Websites/Avatary/avatary/node_modules/rollup/dist/es/shared/rollup.js:24937:13)
at async Promise.all (index 0)
at async build (file:///Users/pieterseegers/Documents/Websites/Avatary/avatary/node_modules/vite/dist/node/chunks/dep-5e7f419b.js:44352:13)
at async CAC.<anonymous> (file:///Users/pieterseegers/Documents/Websites/Avatary/avatary/node_modules/vite/dist/node/cli.js:808:9)
It says that the functions.source field is missing from my firebase configuration file, but it's definitely there;
Just to help with this, it looks like after init, the functions property is now an array of objects rather than an object. Removing the array and making it just the object worked for me.
Describe the Bug
When running
npm run build
I get the following error:It says that the functions.source field is missing from my firebase configuration file, but it's definitely there;
Steps to Reproduce
Expected Behaviour
I think it should recognize this field, but I'm not 100% sure if I'm doing something wrong.
svelte-adapter-firebase version
0.14.4
sveltejs/kit version
1.0.1
The text was updated successfully, but these errors were encountered: