Cannot read property 'projectId' of undefined
See original GitHub issueExpected 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:
- Created 5 years ago
- Reactions:3
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue does not occur if you pass the
-y, --yes
optionC:\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.