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.

api.tsx:51 Uncaught (in promise) Error: .set() on an existing document would delete other fields

See original GitHub issue

Hi

Trying to add new data after deleting. This is more of an FYI & feedback. – This is from the Chrome console.

api.tsx:51 Uncaught (in promise) Error: .set() on an existing document would delete other fields
    at api.tsx:51
    at c (runtime.js:63)
    at Generator._invoke (runtime.js:293)
    at Generator.next (runtime.js:118)
    at r (asyncToGenerator.js:3)
    at s (asyncToGenerator.js:25)

Restarting the server did not help.

Brad.

firebase-debug.log firestore-debug.log ui-debug.log database-debug.log

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
edmondklaicommented, Feb 17, 2021

Step to reproduce this error:

  1. Create an empty Firestore document with console in production.
  2. Create subcollection for that document.
  3. Populate the subcollection with documents.
  4. Copy the data locally.
  5. Run emulators with the test data.

2021-02-16 23 27 26

@yuchenshi

2reactions
bradintheusacommented, Dec 4, 2020

Sorry I’ve not had a chance to recreate. I’ll close for now and reopen when I have time to document it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"The document is locked for editing by another user" error ...
Explains that you receive an error message when you open a Word document. ... it is not in use, quit all instances of...
Read more >
Resolve errors uploading data to or downloading data ... - AWS
I want to download data from Amazon Aurora and upload it to Amazon S3. How can I resolve an error I received while...
Read more >
TypeError: can't delete non-configurable array element
The configurable attribute controls whether the property can be deleted from the object and whether its attributes (other than writable ) can be ......
Read more >
Delete by query API | Elasticsearch Guide [8.5] | Elastic
When you are done with a task, you should delete the task document so Elasticsearch ... was set on it then it'll come...
Read more >
Uncaught (in promise) TypeError: Cannot read properties of ...
You likely have two errors. The first is that you are trying to send an email from a cacheable method (which you can't...
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