-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
'emitsOptions' error impossible to debug #5184
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
Comments
Hello, make sure to always provide a reproduction that follows the instructions at https://new-issue.vuejs.org/?repo=vuejs/vue-next#why-repro. Open a new issue with a reproduction that follows those instructions if you manage to create a boiled down reproduction. Remember to use the forum or the Discord chat to ask questions! |
I have the same issue. Please reopen this |
If you have v-for and v-if on the same element your code may throw this error. |
We are using vue in jsx format, so we dont have any v-fors and v-ifs |
I have the same issue, only in production env, cant find the reason |
@posva Please reopen this issue and look into it. We are all stuck on this issue.. |
After stucking on this problem two days. Finally solved it, although i dont konw the real reason. |
我也有同样的问题 v3.2.30 |
can you please elaborately explain how you wrote |
I have same issue today, please anyone explain how to solve |
I have the same issue: <teleport to=".component-ui-config-container">
<div></div>
</teleport> But finally, I solved the problem: <teleport v-if="isLoaded" to=".component-ui-config-container">
<div></div>
</teleport>
const isLoaded = ref(false);
onMounted(() => {
isLoaded.value = true;
}); |
解决了吗 |
i had the same issue, i fixed it by simply defining a default value. |
I had the same issue,and i fixed it by avoid use undefined properties in element-plus el-popover comonent.
|
I had the same issue only in prod when I was modifying a computed property (which was updating a prop with v-model) and it seems I fixed it by changing some v-show to v-if... I have no clue as to why there was this issue or why I can fix i with v-for. |
is there a good solution? |
I am having the same issue. Just dont know how to resolve it. Can we reopen this issue to take a look? |
+1 |
same issue here. |
I have the same issue. I fixed it by changing variable name |
FYI, I was able to clear this error by ensuring that my Vue components all at least have an empty emits member:
|
A maybe useful tip for anyone who is experiencing this error or the "insertBefore" one, I just solved one by using the "Break at catched exceptions" options in Chrome's DevTool. Vue happens to catch and hide some template exceptions, so they won't show on console. In this particular case, my template (at some step of the Vue render pipeline) was accessing a property of a null object. This in itself didn't cause any problem in development, but in production, (not immediately, but when switching to another component inside the same KeepAlive block) it triggered the "insertBefore" error breaking the website and requiring a refresh. To use this feature, go to Sources, and click these checkboxes as marked in the picture: Then try to replicate the problem, and a few steps before that problem you may run into a seemingly unrelated exception that triggers the domino effect. Actually I'd recommend running every function of your app with this option checked, as you'll probably discover a lot of similar exceptions that may some day break your Vue app. @posva Do you have any idea on how a previous template exception can cause Vue to break irreparably at a future step, in production but not in development? |
Read and follow the links at #5184 (comment) |
Version
3.2.26 (Latest version)
Reproduction link
https://beta.deeeep.io/
Steps to reproduce
Not needed (I'm sorry for the lack of reproduction link, it's honestly impossible to create one at the moment)
What is expected?
More detailed error log
What is actually happening?
Many of my users are reporting errors on my Vue project, and what they get on the console is multiple of the following errors:
I'm not able to reproduce the problem as it seems to happen randomly, and the error itself does not give any helpful information.
Is there any way to debug this? Some aditional "console.log" I can add somewhere to know at least what component is failing?
Thanks in advance, I've been stuck with this for a few days.
The text was updated successfully, but these errors were encountered: