question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'projectId' of undefined

See original GitHub issue

Expected behavior

Import backupFile

Actual behavior

TypeError: Cannot read property ‘projectId’ of undefined at C:\Users\micha\AppData\Roaming\npm\node_modules\node-firestore-import-export\dist\bin\firestore-import.js:69:32

Steps to reproduce the behavior

--accountCredentials C:\Users\micha\Downloads\credentials.json --backupFile C:\Users\micha\Desktop\db.json

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
barrydrinkcommented, Aug 6, 2018

This issue does not occur if you pass the -y, --yes option

1reaction
narimetisaigopicommented, Oct 22, 2018

C:\Users{User Name}\AppData\Roaming\npm\node_modules\node-firestore-import-export\dist\bin comment this code and directly add your Project ID //var projectID = (pathReference._referencePath && pathReference._referencePath._projectId) || //(pathReference.firestore && pathReference.firestore._referencePath && pathReference.firestore._referencePath._projectId); // || pathReference.firestore.projectId; var projectID = "YOUR_PROJECT_ID";

this project occurring due to wrong variable name.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot set Property 'ProjectId' of Undefined - Stack Overflow
I am trying to edit the details of Projects fecthed from a WebAPI. I can successfully get the list of projects. However when...
Read more >
Cannot read property 'projectId' of undefined
I am looking for some information about the error message: "The chosen settings are invalid - Cannot read property 'projectId' of undefined" ...
Read more >
typeerror: cannot set properties of undefined created() - You.com
Solution for TypeError: Cannot set properties of undefined in JavaScript Method 1: Use the conditional statement Method 2: Use the OR operator Summary...
Read more >
Uncaught TypeError: Cannot read property 'errors' of undefined
Exception: Uncaught TypeError: Cannot read property 'errors' of undefined ... And it looks like the project id needs to be prepended to the...
Read more >
Uncaught typeerror: cannot read properties of undefined ...
Usually this means a variable that you're referencing has a value of undefined when you try to read the property (as the error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found