-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Extension server error: Object not found: <top>" #8188
Labels
Comments
Please make a PR for this. Thank you. |
hawkeye64
added a commit
to hawkeye64/quasar
that referenced
this issue
Dec 18, 2020
rstoenescu
pushed a commit
that referenced
this issue
Dec 18, 2020
rstoenescu
pushed a commit
that referenced
this issue
Dec 18, 2020
hawkeye64
added a commit
to hawkeye64/quasar
that referenced
this issue
Dec 18, 2020
@faxinwang The fix will be in the next @quasar/app release, but that won't help existing Quasar/Electron apps. Please update your /**
* This file is used specifically and only for development. It installs
* `electron-debug` & `vue-devtools`. There shouldn't be any need to
* modify this file, but it can be used to extend your development
* environment.
*/
import electronDebug from 'electron-debug'
import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'
import { app, BrowserWindow } from 'electron'
app.whenReady().then(() => {
// allow for a small delay for mainWindow to be created
setTimeout(() => {
// Install `electron-debug` with `devtron`
electronDebug({ showDevTools: false })
// Install vuejs devtools
installExtension(VUEJS_DEVTOOLS)
.then(name => {
console.log(`Added Extension: ${name}`)
// get main window
const win = BrowserWindow.getFocusedWindow()
if (win) {
win.webContents.on('did-frame-finish-load', () => {
win.webContents.once('devtools-opened', () => {
win.webContents.focus()
})
// open electron debug
console.log('Opening dev tools')
win.webContents.openDevTools()
})
}
})
.catch(err => {
console.log('An error occurred: ', err)
})
}, 250)
})
import './electron-main' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
when runing the
quasar dev -m electron
, it always reports:it sames that this electron-userland/electron-webpack-quick-start#56 can solve it.
just a line of code.
The text was updated successfully, but these errors were encountered: