这是electron官网对BrowserWindow.addDevToolsExtension(extension)API的使用介绍,简单来说就是在electron的主进程main.js中使用API,唯一参数为插件路径,上图中引入Node的path、os模块都是为了拼接得到Vue.js devtools的所在路径,这里我直接采用绝对路径(简单明了) 这时报错了,BrowserWindow.addDevToolsExtension is not a f...
按照步骤操作后,启动electron后仍然没有vue-devtools。 解决方法: awaitmainWindow.loadURL(process.env.WEBPACK_DEV_SERVER_URL)mainWindow.webContents.openDevTools() 利用async/await 等待异步操作结束后再打开开发者工具。
C:\Users\Administrator>vue-devtools C:\Users\Administrator\AppData\Roaming\npm\node_modules@vue\devtools\node_modules\electron\index.js:14 throw new Error(‘Electron failed to install correctly, please delete node_modules/electron and try installing again’) ^ Error: Electron failed to install corr...
"element-ui": "^2.4.5", "vue": "^2.6.11", "vue-router": "^3.2.0", "vuex": "^3.4.0" 客户端及服务端 "electron": "^11.0.0", node:v12.18.2 构建及调试工具 electron-builder:v22.11.1 "electron-devtools-installer": "^3.1.0", 谷歌浏览器可以正常使用vue-devtools,electron窗口无法使...
, source: chrome-extension://vue-js-devtools/build/devtools.js (22) 想必空白的原因就是这个报错引起的。 但我有一台电脑的Electron devtools是可用的,此扩展程序从chrome网上应用店下载,版本为:5.1.1。 同时有另一台电脑,扩展程序也是从chrome应用商店下载,版本为:5.3.4。这个版本也报错,报错和自己编译的...
在Electron 中使用Vue Devtools ·首先在Chrome中安装Vue Devtools; ·在Chrome中打开扩展程序,并且开启开发者模式,这样就可以获取扩展程序的ID,记住这个ID ·在Electron应用中添加如下代码: main/index.js if (process.env.NODE_ENV !== 'development') { global.__static = require('path').join(__dirname, ...
They are not the cause of this issue. 👍 9 nornagon changed the title React DevTools and Redux DevTools not working Electron@9.0.0 React DevTools and Redux DevTools tabs sometimes not appearing Electron@9.0.0 May 20, 2020 idanwork commented May 21, 2020 Does this have to do something ...
注意上面的路径,你直接写"node_modules/vue-devtools"这个是不行的,应为插件的入口在它下面的"vender"目录下面。还有一点要小心:上面的代码必须在ready事件之后或者直接写在ready事件里面,不然报错 vueeletctron-vuevue-devtools 分享至 投诉或建议
console.error('Vue Devtools failed to install:', e.toString()) } } createWindow() }) 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 加入vue-devTools 成功.。 就这样就可以调试了,具体配置看官网Demo
2019-09-24 20:02 −第一步: 前往 GitHub 下载 Vue Devtools 项目文件 https://github.com/vuejs/vue-devtools 注意: 1. 将分支切换为 master 2. 下载.zip压缩包后在本地解压 第... aisowe 0 2770 Vue 2019-12-10 19:21 −Vue.js的作者为Evan You(尤雨溪),曾任职于Google Creative Lab,虽然是...