Answer the question
In order to leave comments, you need to log in
Why doesn't vue devtolls work in electron?
Project start
vue create .
(TS, Vue3, EsLint + Pretter, SASS, vuex, vue-router, mocha)
vue add electron-builder
(electron 9.0.0)
vue-cli-service electron:serve
Answer the question
In order to leave comments, you need to log in
In general, the problem so far in the new Vue3 with Vue2 everything starts up fine if you add async / await
if (process.env.WEBPACK_DEV_SERVER_URL) {
// Load the url of the dev server if in development mode
await win.loadURL(process.env.WEBPACK_DEV_SERVER_URL as string);
if (!process.env.IS_TEST) win.webContents.openDevTools();
} else {
createProtocol("app");
// Load the index.html when not in development
win.loadURL("app://./index.html");
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question