When simulating mobile devices...Long press a button, tools report error about a second later.
Edit: Or right click and it immediately report the error
document.addEventListener("contextmenu", t=>{
const n = t.target;
if (n) {
const t = Object(o.a)(n); // here
if (t)
return e.__VUE_DEVTOOLS_CONTEXT_MENU_HAS_TARGET__ = !0,
void (e.__VUE_DEVTOOLS_CONTEXT_MENU_TARGET__ = t)
}
e.__VUE_DEVTOOLS_CONTEXT_MENU_HAS_TARGET__ = null,
e.__VUE_DEVTOOLS_CONTEXT_MENU_TARGET__ = null
}
)
4.0.0
Chrome 63/ Win 10 FCU
1.Long press a button
2.report error
No mistake
report error
I can't reproduce this. Also, the code you posted doesn't exist. Here is the compiled code in the extension:
document.addEventListener("contextmenu", t=>{
let n = t.target;
if (n) {
for (; !n.__vue__ && n.parentElement; )
n = n.parentElement;
const t = n.__vue__;
if (t)
return e.__VUE_DEVTOOLS_CONTEXT_MENU_HAS_TARGET__ = !0,
void (e.__VUE_DEVTOOLS_CONTEXT_MENU_TARGET__ = t)
}
e.__VUE_DEVTOOLS_CONTEXT_MENU_HAS_TARGET__ = null,
e.__VUE_DEVTOOLS_CONTEXT_MENU_TARGET__ = null
}
)
Try to remove and reinstall the extension.



I did just try and still happens.
build with this commit: a79d9c55176ed8146b3631256a869d6938209c3e
Got a same issue.
+1
Got the same issue.
Uncaught ReferenceError: o is not defined
at HTMLDocument.document.addEventListener.t (<anonymous>:1:783)
@Akryum After your fix in #528, I've also seen this, the first time Vue-Devtools is run.
This can now be seen in the same sample here (the same url sample in #528). This seems to happen only the first time Vue-Devtools is initialized.
Steps to reproduce
Sometimes this error pops right away on the page. Sometimes you need to click on the page a few times and it will display the error instead of the rendered content. In one of my project, it displays in the developer tools' console window.
When reloading the page the second time (without closing Vue-devtools), the error is gone.
@ratiw I can't reproduce on the branch.
@Akryum After revisit it again, it actually happens when I "right-click" the window.
Please see the attached gif.

Confirmed, mouse right-click trigged it in my Chrome also.
Same issue on my end guys
I have this issue on pages where Vue isn't loaded at all, so not sure why the plugin is listening.

Same issue here, when right clicked on any page, version tested: 4.1.0
Seems to be related to the contextual menu that displays the "inspect vue component" with latest Vue.js, I'm installing it and it's fresh, also having the issue.
@anteriovieira Well, I'm using NWjs (node-webkit) with Vue + Vue DevTools and the error still remains.
@f3l1x, the fix should come in the next version.
You should release that version ASAP. Or even consider disabling the current version of the plugin altogether until you have released that version:
The plugin is breaking other web applications: whenever you right click on them the onerror handler on the window is triggered. Those web apps that report this error (silently or to the user) all look broken, now.
We get lots of reports from the users of our apps regarding this issue. This makes web pages look bad, when in fact it's the vue.js devtools plugin that is badly programmed.
IMHO the plugin should be written with try/catches all over. In case of programming errors the _plugin_ should never trigger the _web pages_'s error handler.
Are your users using the Vue devtools?
As soon as you have a certain user base, there are some among them, who are using it. Do you always disable the plugin when you don't develop with vue? I don't. (or rather: I didn't).
So obviously: yes, some of them have the plugin installed. It doesn't matter whether you are using it. Having it installed seems to be enough.
Until 4.1.1 is out they can disable it then.
@yGuy the error is only thrown when the vue tab is triggered. If the user does not open the devtools and select the vue tab then the error is not related to vue-devtools.
The point is: How do I tell them, that it's not my page that is broken, but its the damn plugin that is totally unrelated? I cannot send an email to all my users and tell them about the plugin. I don't even have their contact data. When will 4.1.1. be out?
@anteriovieira This can happen even if the devtools are not open.
I cannot send an email to all my users and tell them about the plugin. I don't even have their contact data.
Why don't you have any mean of supporting your users?
When will 4.1.1. be out?
Very soon.
4.1.1 has been pushed to chrome web store, it should be live any time.
4.1.1 is out, not experiencing this bug anymore on my end (user agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36). Thanks for fixing this!
Thanks for the fix @Akryum! This issue also affected the extension on Firefox and it is now fixed as well.
Please ignore the complainers. Users need to understand that any time they install an extension and grant permission to inject javascript on any page, they are opening 3rd party sites up to breakage. That's not on you at all. Developers should know better.
Confirm, it's fixed for my and NW.js environment.
Most helpful comment
4.1.1 has been pushed to chrome web store, it should be live any time.