Code Monkey home page Code Monkey logo

Comments (5)

simonbengtsson avatar simonbengtsson commented on September 2, 2024

Likely there is some kind of config issues with your firebase project. I would advice you to follow the instructors in the documentation and deploy a "hello world" function first ensuring that work and then changing this code to the pairing function in this repository.

Firebase function docs: https://firebase.google.com/docs/functions

from airdash.

tanishbajaj101 avatar tanishbajaj101 commented on September 2, 2024

i'm facing the same issue, were you able to solve it?

from airdash.

gisborne avatar gisborne commented on September 2, 2024

Add me to the "me too" list.

from airdash.

simonbengtsson avatar simonbengtsson commented on September 2, 2024

Must be some missing/wrong in the readme then. Some suggestions

from airdash.

gisborne avatar gisborne commented on September 2, 2024

Okay.

This led me to a bunch of things I needed to do.

On the Firebase admin page, I had to enable functions, which required me to set up billing and also to upgrade the project (I wasn't clear what this did), but seemed a separate step, required to turn on billing. which appears to be needed to turn on functions.

In the course of doing this, it walked me through doing a few things. Note that I chose to turn on linting when I installed firebase-tools, which is part of what I have to follow up on. Also, the latest version of firebase-tools appears to not work on Mac (I get /bin/sh: --: invalid option, so I had to downgrade firebase-tools:

npm -g install [email protected] #12.1.0 might work
npm install eslint

Also removed this:

,
      "predeploy": [
        "npm --prefix \"$RESOURCE_DIR\" run lint"
      ]

from firebase.json.

It seems my particular version of node (21) doesn't work. I tried this:

 sudo npm cache clean -f
 sudo npm install -g n
 sudo n stable
 brew install node@22
 node -v
v22.6.0

firebase deploy now gives me:

Error: Detected node engine >=16 in package.json, which is not a supported version. Valid versions are 10, 12, 14, 16, 18, 20, 22

I tried to fix this with "node": ">=16" in package.json, but as you see it still doesn't work. So I changed it to "22". Now I get:

Failed to create function projects/qrit-47b40/locations/us-central1/functions/pairing.

I've tried to get this to work, and I've changed a bunch of things so far without success.

Honestly, it looks like someone from this project should try going through this process themselves, although I will keep trying, but I will have trouble producing accurate instructions with all the flailing around I'm doing.

Also, it's a little troubling that I have to turn on billing, given that the instructions have us using an anonymous endpoint, so if we could not do that (it looks like billing is required for functions, so this probably means not using an anonymous account), that would probably be good.

from airdash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.