I have installed many plugins on my Chrome for Mac, which are useful and necessary, and I have installed the 6.6.4 version of vue devtools on my computer.
At present, when running the old vue2 project on my Chrome, the devtools cannot be automatically called up, but the vue3 project seems to be normal. Through breakpoint debugging, I found that the execution order of the local devtools and the execution order of vue.esm.js seemed to be reversed, resulting in the failure to find the window.__VUE_DEVTOOLS_GLOBAL_HOOK__ object when vue.esm.js initialized devtools, so the developer tools could not be displayed normally.
When I use other browsers, I first execute the hijacking injection of window.__VUE_DEVTOOLS_GLOBAL_HOOK__, and then execute init in the emit of devtools in vue.esm.js.
What is expected?
Old vue2 projects can also call up devtools normally
What is actually happening?
The development environment normally invokes vue devtoolsThe development environment cannot call up vue devtools in the vue2 project, but everything is normal in the vue3 project
Vue devtools version
6.6.4
Link to minimal reproduction
*
Steps to reproduce & screenshots
I have installed many plugins on my Chrome for Mac, which are useful and necessary, and I have installed the 6.6.4 version of vue devtools on my computer. At present, when running the old vue2 project on my Chrome, the devtools cannot be automatically called up, but the vue3 project seems to be normal. Through breakpoint debugging, I found that the execution order of the local devtools and the execution order of vue.esm.js seemed to be reversed, resulting in the failure to find the
window.__VUE_DEVTOOLS_GLOBAL_HOOK__
object when vue.esm.js initialized devtools, so the developer tools could not be displayed normally. When I use other browsers, I first execute the hijacking injection of window.__VUE_DEVTOOLS_GLOBAL_HOOK__, and then execute init in the emit of devtools in vue.esm.js.What is expected?
Old vue2 projects can also call up devtools normally
What is actually happening?
The development environment normally invokes vue devtoolsThe development environment cannot call up vue devtools in the vue2 project, but everything is normal in the vue3 project
System Info
Any additional comments?
No response