-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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
Unhandled error during execution of scheduler flush. Caused by computed #2819
Comments
Issues with the same error:
Closed PRs related to this issue:Question on Discord: |
Read https://new-issue.vuejs.org/?repo=vuejs/vue#why-repro and open a new issue with a finished repro on that jsfiddle |
@posva you are totally right. I tried to replicate it in JSfiddle, but I couldn't. It is working there (https://jsfiddle.net/au6ot9yh/). GitHub RepoDifferences between
|
Now I created another component |
What is causing the error: ✅ Works fineexport default defineComponent({
name: 'TestButton', 🚫 Causing above described errorexport default defineComponent({
name: 'Button', |
Couldn't replicate the problem in a new vue-cli project. Really weird! |
Could you please re-open this ticket? The issue didn't magically disappear. If you don't use vue-cli but a webpack config with wp 5.27.0 and vue-loader 4.1.1 it can be re-procuded. For me it always happens when using component tag names with dashes. So using the tag name "value-input" causes the error while "valueinput" doesnt. |
@andre-cgn I've ran into this multiple times. It's just an issue with HMR. Just rebuild and run your application. It should be fine. |
This comment was marked as spam.
This comment was marked as spam.
It looks like this issue is closed, but I recently ran into it with a dynamically rendered component. I found a couple of workarounds on StackOverflow, but none of those worked for me. Eventually, I wrapped the component in a
Also noteworthy is I was only able to reproduce this in local dev mode, while others struggled to reproduce the same problem 🤷♂️ |
Version
3.0.4
Reproduction link
https://jsfiddle.net/Lb9gtx0w/2/
Steps to reproduce
Create a
setup()
function orcomputed:
property and return a computed property of nametype
with value either"router-link"
or"button"
. This computed property is then bind to the components attributeis
.What is expected?
The value of
type
is bind to theis
attribute and no error/infinite loop is caused.What is actually happening?
setup()
is called again and again till the app is crashing.Following errors are appearing:
...and so on.
Code excerpt
The text was updated successfully, but these errors were encountered: