-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Server-side Nuxt modifying plain objects #6480
Comments
hi @sunyatasattva , i've just met the similar bug, but instead in I did know that the core of Nuxt using vue server renderer module, and i searched on Nuxt document and Vue server renderer document, there are serveral info about At the end, i knew that the |
Thank you @quocduan I'll try and see if it solves my problem! |
Thank you so much @quocduan. You saved a lot of my time! In my case, the below code which simply follows the firestore documentation does not work on my local when it runs in a Vuex action via fetch in a page with development mode ( db.collection("users").doc(uid).set({ name: "test user" }); I just added the following config to render: {
bundleRenderer: {
runInNewContext: false
}
}, |
Thanks for your contribution to Nuxt.js!
Issues that are labeled as |
Version
2.8.1
Reproduction link
https://github.com/ThomasKientz/nuxt-firestore-repro
Steps to reproduce
npm install
npm run dev
navigate to localhost:3000
See the error message in the console
What is expected ?
Firebase can execute and update without any errors.
What is actually happening?
Happens only on server-side: Firebase rejects the update as it looks like a "custom object" is being passed, though object was created as object literal.
Possibly Nuxt is modifying or proxying the creation of new objects.
Additional comments?
Full error message:
The text was updated successfully, but these errors were encountered: