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

NodeJS script doesn't work, can I submit a python alternative? #18

Open
JordyScript opened this issue Dec 18, 2021 · 3 comments · May be fixed by #25
Open

NodeJS script doesn't work, can I submit a python alternative? #18

JordyScript opened this issue Dec 18, 2021 · 3 comments · May be fixed by #25

Comments

@JordyScript
Copy link

Tried automatically populating the database with the NodeJS script, but couldn't get it to work. It was easy enough to reimplement the functionality in Python. Are you interested in hosting the python version on this repository for others to use?

@michaelskonnard
Copy link

michaelskonnard commented Feb 3, 2022

The NodeJS script wasn't working for me because there were some dependency issues. Getting the latest packages fix this:

  • remove all dependencies from package.json
  • run npm i @grpc/grpc-js firebase-admin fs-extra yamljs

@dpst999
Copy link

dpst999 commented May 28, 2022

The NodeJS script wasn't working for me because there were some dependency issues. Getting the latest packages fix this:

  • remove all dependencies from package.json
  • run npm i @grpc/grpc-js firebase-admin fs-extra yamljs

Thanks , it works

@RedFour
Copy link

RedFour commented Jul 11, 2023

Still doesn't work even with running dpst999's script.

❯ node quizzes.js
node:internal/modules/cjs/loader:959
throw err;
^

Error: Cannot find module '@google-cloud/firestore'
Require stack:

  • E:\Code\Projects\Tutorials\flutter\fireship-quizapp-data\node_modules\firebase-admin\lib\firebase-namespace.js
  • E:\Code\Projects\Tutorials\flutter\fireship-quizapp-data\node_modules\firebase-admin\lib\default-namespace.js
  • E:\Code\Projects\Tutorials\flutter\fireship-quizapp-data\node_modules\firebase-admin\lib\index.js
  • E:\Code\Projects\Tutorials\flutter\fireship-quizapp-data\quizzes.js

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

Successfully merging a pull request may close this issue.

4 participants