I'm encountering an issue with loading Vue Devtools in my Electron application integrated with Vue. This is my first time working with this combination, and I suspect there might be a dependency problem causing the Devtools not to load within the Electron app window.
Although I've checked out this Github issue, I have newer versions of Electron and vue-cli-plugin-electron
installed with the latest code updates mentioned.
I also attempted the following snippet (sourced from here):
win.loadURL(process.env.WEBPACK_DEV_SERVER_URL).then(() => {
if (!process.env.IS_TEST) {
setTimeout(() => win.webContents.openDevTools(), 5555)
}
})
Unfortunately, using that code snippet resulted in breaking everything.
One more thing I tried was running vue invoke electron-builder
to regenerate the configuration, as suggested in the documentation.
However, the issue persists. Could someone please review my setup and point out any obvious mistakes?
This excerpt shows part of my package.json
:
[JSON content here]
And below is my background.js
file:
[JavaScript content here]