Skip to content

Node.js remote package is missing? #9996

Discussion options

You must be logged in to vote

Please be aware of the Electron version that you are using and then plan your code accordingly. "This and that" not being available is not due to Quasar, but exclusively due to newer Electron. Use the electron-preload script to bridge between nodejs and your UI thread. https://quasar.dev/quasar-cli/developing-electron-apps/electron-upgrade-guide#the-electron-preload-js-file

Also notice this in /src-electron/electron-main.js:

new BrowserWindow({
    // ...
    webPreferences: { // <<<<< this is really important
    }
}

Read about how you can enable different Electron stuff (including the remote object if I'm not mistaken) through webPreferences. But the defaults really have a reason to be…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by JokerMartini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants