Unhandled error during execution of scheduler flush
Version
3.2.21
Reproduction link
Steps to reproduce
https://github.com/webtutsplus/ecommerce-ui/tree/vue-bug Checkout the branch vue-bug. Go to http://localhost:8080/admin/product Click on edit in any product. It is working. But when you refresh the page, it stops working.
What is expected?
Edit fields should be populated.
What is actually happening?
Edit fields are not being populated.
Most likely your problem is in this line. You are setting a new product, but it may be undefined because the list of products hasn't been fetched yet from the API, therefore you can't access property name (product.name) in the template.
Your reproduction is not minimal, please read and follow https://new-issue.vuejs.org/?repo=vuejs/vue-next#why-repro when reporting a bug. Most bugs should be reproducible with the SFC Playground. Remember to use the forum or the Discord chat to ask questions!