michalzaq12 / electron-nuxt

⚡ An Electron & Nuxt.js / Vue.js quick start boilerplate with vue-cli scaffolding, electron-builder, unit/e2e testing, vue-devtools
https://michalzaq12.github.io/electron-nuxt
MIT License
721 stars 78 forks source link

[BUG] Remote is Deprecated #786

Closed BlackYuzia closed 2 years ago

BlackYuzia commented 2 years ago

Hi there, thx for that template.

But, how I find in pages/index.vue, you use remote from electron. As docs say remote is deprecated.

You can replace deprecated remote by ipcRenderer and ipcMain.

import { remote } from 'electron'

// inside vue
openURL (url) {
  remote.shell.openExternal(url)
}

That also mean what remote.shell... won't work and return error because remote is undefined.

michalzaq12 commented 2 years ago

Fixed in 1.8.1