fireship-quizapp-data icon indicating copy to clipboard operation
fireship-quizapp-data copied to clipboard

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

Open JordyScript opened this issue 3 years ago • 3 comments

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?

JordyScript avatar Dec 18 '21 19:12 JordyScript

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

michaelskonnard avatar Feb 03 '22 21:02 michaelskonnard

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

dpst999 avatar May 28 '22 16:05 dpst999

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

RedFour avatar Jul 11 '23 03:07 RedFour