Hello, I'm working on a Chrome app, I got Vue up running on it but I can't seem to get the devtools in the console app, any way around this?
Sorry for the delay.
Did you find a way of doing it?
@posva I can confirm that Vue dev tools does not detect Vue instances injected into the page by Chrome extensions.
I've created a fairly minimal issue reproduction repo here: https://github.com/SoullessWaffle/yaglman/tree/devtools-repro
Vue 2.1.10
Vue dev tools 3.0.5
$ git clone https://github.com/SoullessWaffle/yaglman.git$ git checkout devtools-repro$ npm install$ npm run watchDeveloper mode is checked in the top rightLoad unpacked extension and select the project's dist directoryThe Vue instance is detected and the Vue tab shows up in the Chrome dev tools
Maybe we could learn from redux or react devtools. I think they support this. https://github.com/zalmoxisus/redux-devtools-extension/blob/v2.2.1/src/browser/extension/inject/index.js
I don't know if it's related to remote debugging
Closing in favour of #120
@posva Would adding chrome-extension://* here work? It wouldn't fix the detection issues for content scripts I described above but perhaps it might allow the devtools to work in chrome apps.
It doesn't seem to be a valid one :(
Damn :/
Maybe chrome-extension://*/*? Probably not but worth a try.
If it's not valid then maybe it's a Chrome security thing where it doesn't let extensions modify other extension pages...
nope 😞
@jofranmi Same issue here! Did you find any solutions?
I'm using Vue.js to develop chrome app, I can use https://github.com/jusio/storage-area-explorer correctly in chrome apps.,but after reading vue-devtools's source code,
This project just not support chrome app to develop.
Due to Chrome APP security reasons, injectScripts(), remote Shell are both forbidden.
Can't find a proper way to use devtools, which makes me freak out.
I really hope Vue devtools can be used every where.
There is a standalone devtools app as listed in the README: https://github.com/vuejs/vue-devtools/blob/master/shells/electron/README.md
@Akryum Unfortunately, I've tried this solution, Chrome‘s CSP in Chrome app not allow to load script like this also.
Any one who is looking for a solution to use this devtools, modifying source code is needed.
In chrome app, bellows are forbidden:
First, content_scripts match [all_urls] is not working.
Second, inject script is forbidden.
Third, port connection between background and devtools cannot established.
Most helpful comment
Maybe we could learn from redux or react devtools. I think they support this. https://github.com/zalmoxisus/redux-devtools-extension/blob/v2.2.1/src/browser/extension/inject/index.js
I don't know if it's related to remote debugging