Comments (4)
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.
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.
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.
@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)
- error TS2304: Cannot find name 'RTCErrorDetailType'. HOT 3
- [UI] [BUG] - Filters in sub-table keeps refreshing HOT 10
- Add a delete/remove icon in Sorted button chip HOT 3
- BUG: Filter on the table works, but the same applied to the Table Filter doesn't HOT 12
- Sending Date using Webhook not working HOT 2
- Error while importing CSV to a table HOT 3
- Unable to connect an existing firebase project "load failed" HOT 4
- Improve row selection UI and accessibility HOT 1
- Error Setting Firestore/Storage Rules when Connecting Rowy to Firebase HOT 3
- BUG: copy/paste on Array Subtable filed gives an incorrect error HOT 6
- Out of order rows do not work with sorts/filters HOT 6
- Add fuzzy search to column type select popup HOT 6
- Animation to search tables gets slower as number of table grows HOT 7
- Failed deployment for dynamic default value for a column HOT 2
- Error when executing argon2 code in Buildship
- Bulk edit support - edit a number of rows at once HOT 1
- Error when importing table from firestore
- Importing existing data from subtable/map
- You're offline error (stuck) HOT 1
- Derived Columns Deploy Typescript Issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rowy.