Skip to content
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

Firebase error on npm run deploy #531

Closed
Nardol opened this issue Jan 15, 2021 · 3 comments
Closed

Firebase error on npm run deploy #531

Nardol opened this issue Jan 15, 2021 · 3 comments

Comments

@Nardol
Copy link

Nardol commented Jan 15, 2021

I followed all the instruction provided in the README file but when running npm run deploy, I have the following error:
"Error: No currently active project.
To run this command, you need to specify a project. You have two options:

  • Run this command with --project <alias_or_project_id>.
  • Set an active project by running firebase use --add, then rerun this command.
    To list all the Firebase projects to which you have access, run firebase projects:list.
    To learn about active projects for the CLI, visit https://firebase.google.com/docs/cli#project_aliases

Having trouble? Try firebase [command] --help"
Firstly, I cannot find the firebase binary.
I also tried to modify the deploy command to include my project id but also error.
I didn't find any answer to this question.
What can I do to deploy successfully?
What did I miss in the readme file?

@Nardol
Copy link
Author

Nardol commented Jan 15, 2021

In fact I modified the command to add the firebase login before the deploy --project= so I logged in, but after I have the error: Error: Failed to get Firebase project testsmarthome. Please make sure the project exists and your account has permission to access it.
What is wrong here? My project is well-spelled.

@Nardol
Copy link
Author

Nardol commented Jan 15, 2021

In fact it looks like this project is not deployable, there is alway a new error.
After again modifying something I have an error specifying billing is not enabled, i swtiched engine version from 10 to 8 as specified here: https://stackoverflow.com/questions/63932639/400-billing-account-for-project-is-not-found-billing-must-be-enabled-for-activa
And now, I have a 403 when deploying:
"> rollup -c rollup.config.js

src/my-app.js → public...
(!) If you do not supply "output.name", you may not be able to access the exports of an IIFE bundle.
created public in 2.4s
✔ hosting: Finished running predeploy script.
i functions: ensuring required API cloudfunctions.googleapis.com is enabled...
✔ functions: required API cloudfunctions.googleapis.com is enabled
i functions: preparing . directory for uploading...
i functions: packaged . (800.08 KB) for uploading
⚠ functions: Upload Error: HTTP Error: 403, Unknown Error

Error: HTTP Error: 403, Unknown Error"
After re-trying, I had the error specifying engine version 8 cannot be used now.
Solving an error creates two new errors...

How could it be possible to deploy this project in fact?
I though the readme file provided all instructions to run this project but it does not seems to be the case.
Or a node version requirement issue?
If someone has successfully deployed and was able to test the project recently, I could be really interested please.

@proppy
Copy link
Contributor

proppy commented Jan 20, 2021

@Nardol Thanks for the report, as shown in https://firebase.google.com/support/faq#expandable-9 Firebase Functions now require billing to be turned on for Node.js >= 10, filed #533 for us to update the documentation.

@proppy proppy closed this as completed Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants