-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: "functions is not defined" when running firebase deploy
#187
Comments
firebase deploy
I see the issue now -- the README assumes that I not just run Maybe the solution here would just be to update the README to be clear what aspects of the firebase init need to have been set up. |
Yeah, sorry about that. The docs are complex and should probably be their own interactive site at this point. Thanks for the suggestion, docs will be a focus after Kit v1.0 in the new year. |
Describe the Bug
The default code output to the CLI seems to assume that
functions
is defined -- I don't have any server side functions / I was starting with a vanilla sveltekit application and my/functions/index.js
only exists for this adapter.When I run
firebase deploy
I get the following error:This is unsurprising since I see the generated code references
functions.logger.info
in a few places.Steps to Reproduce
functions/index.js
with the CLI output for the ssrServerExpected Behaviour
I would expect either the documentation or the CLI output to account for the case where
functions
is not defined already inindex.js
svelte-adapter-firebase version
0.14.4
sveltejs/kit version
1.0.0-next.488
The text was updated successfully, but these errors were encountered: