Vue Devtools doesn't support iframes (even on same-domain). In theory, there exists support for external devtools (for Electron apps, etc), but these also do not work. See the external
branch for a reproduction of this.
External devtools isn't a great solution for web-based application that use iframes (mainly microfrontends) or for tools like Storybook or Cypress (component workbenches).
Vue devtools doesn't detect Vue on the page.
Telling the child iframe to reach up into the parent window and bind certain globals like the root Vue node or Vue module (perhaps I'm not binding the right stuff? Maybe there's a Devtools.refresh() kinda function I need to call?)
-
Install latest devtools for 2.x and 3.x (depending on what branch you're on)
-
Install deps
yarn install
- Start static server
yarn serve
- Open index.html in server
- See that devtools doesn't light up
- Navigate to iframe.html directly, see that devtools lights
-
2.x - Latest Vue 2 script
-
3.x - Latest Vue 3 script
-
external - Demo of external devtools failing with Vue 2