Giter VIP home page Giter VIP logo

Comments (4)

shamsmosowi avatar shamsmosowi commented on May 11, 2024

Hi jerry, deploying cloud functions should be fixed now if you pull from master.
Could you share what the error is in browser console for the authentication screen. It might be that the environment variables might not have been configured correctly

from rowy.

GorvGoyl avatar GorvGoyl commented on May 11, 2024

now, yarn deploy is throwing the below error:

PS C:\Users\1gour\OneDrive\Documents\old\Github\firetable\cloud_functions\functions> yarn deploy
yarn run v1.21.1
$ firebase deploy --only functions

=== Deploying to 'evrcare-firebase'...

i  deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint

> functions@ lint C:\Users\1gour\OneDrive\Documents\old\Github\firetable\cloud_functions\functions
> tslint --project tsconfig.json

no-use-before-declare is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead.
Running command: npm --prefix "$RESOURCE_DIR" run build

> functions@ build C:\Users\1gour\OneDrive\Documents\old\Github\firetable\cloud_functions\functions
> tsc

+  functions: Finished running predeploy script.
i  functions: ensuring necessary APIs are enabled...
+  functions: all necessary APIs are enabled
i  functions: preparing functions directory for uploading...

Error: Error occurred while parsing your function triggers.

TypeError: algolia_1.default is not a function
    at exports.algolia.algoliaConfig_1.default.reduce (C:\Users\1gour\OneDrive\Documents\old\Github\firetable\cloud_functions\functions\lib\index.js:8:88)
    at Array.reduce (<anonymous>)
    at Object.<anonymous> (C:\Users\1gour\OneDrive\Documents\old\Github\firetable\cloud_functions\functions\lib\index.js:7:43)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)

Having trouble? Try firebase [command] --help
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

from rowy.

notsidney avatar notsidney commented on May 11, 2024

Hi, I can’t recreate your issue on a clean install. It seems there is an issue with how TypeScript exports the local functions, causing the Firebase CLI to treat a config file as a function to be exported.

Try pulling the latest version of the master branch again and make sure you re-install all dependencies. You should also need to double-check the instructions: Algolia environment keys have been updated with different names. https://github.com/AntlerVC/firetable#4-set-up-cloud-functions

If you’re still facing issues, change the build script in cloud_functions/functions/package.json to be:

"build": "tsc -v",

to print out the version of TypeScript it’s using—maybe that’s the culprit.

Please let us know how it goes.

from rowy.

notsidney avatar notsidney commented on May 11, 2024

@JerryGoyal I was able to recreate your issue. I solved it by deleting the lib folder in cloud_functions/functions, which contains the TypeScript-compiled code.

Please let us know if this works for you too!

from rowy.

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.