[go: nahoru, domu]

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

Missing module in script to import existing documents #87

Closed
cpena opened this issue Dec 16, 2021 · 4 comments
Closed

Missing module in script to import existing documents #87

cpena opened this issue Dec 16, 2021 · 4 comments

Comments

@cpena
Copy link
cpena commented Dec 16, 2021

Hi,

I 'm trying to import existing Firestore documents using npx firestore-algolia-search and following this guide , but I'm receiving this error:

{"severity":"WARNING","message":"Warning, FIREBASE_CONFIG and GCLOUD_PROJECT environment variables are missing. Initializing firebase-admin will fail"}
Cannot find module '@google-cloud/firestore'

NODE v10.23.3
NPM v6.14.11

@smomin
Copy link
Collaborator
smomin commented Dec 22, 2021

Please provide the full cli command that was executed. Make sure to redact sensitive data.

@cpena
Copy link
Author
cpena commented Dec 23, 2021

Hi , this is the full command:

LOCATION=us-east1 \
PROJECT_ID=my_project \
ALGOLIA_APP_ID=xxxxxxxx \
ALGOLIA_API_KEY=xxxxxxx \
ALGOLIA_INDEX_NAME=project \
COLLECTION_PATH=Project \
FIELDS=field1,field2 \
GOOGLE_APPLICATION_CREDENTIALS=credential.json \
npx firestore-algolia-search

@smomin
Copy link
Collaborator
smomin commented Dec 23, 2021

I am not sure if this might be you local environment. Can you execute this command in a Node docker container?

@smomin
Copy link
Collaborator
smomin commented Jan 6, 2022

hey @cpena, were you able to execute this commend in a Node docker container? Did it resolve your issue?

@smomin smomin closed this as completed Jan 18, 2022
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

No branches or pull requests

2 participants