vue-electron (v1.0.6, last updated 2017) is a Vue.js plugin that attaches all Electron APIs to the Vue prototype, making them accessible via `this.$electron` in any component. It eliminates the need to import `electron` in every file, simplifying integration in electron-vue boilerplate projects. The plugin is a thin wrapper that installs via `Vue.use()`. It is stable but no longer actively maintained; users are encouraged to migrate to modern approaches like `window.require('electron')` or using the `@electron/remote` package directly. Release cadence is low, with no recent updates.
npm install vue-electronVerified import paths — ran on the pinned version, not inferred.
This shows how to install vue-electron, then use this.$electron in a component to call Shell.openExternal.
Migrate to using `window.require('electron')` or install `@electron/remote` and use `remote.require('electron')`.Install @electron/remote and enable remote module via main process; then use window.require('electron') instead.Use Vue 2 or manually assign electron APIs using Vue.prototype.$electron = require('electron').Disable contextIsolation in BrowserWindow options or use preload script to expose electron APIs safely.
Ensure Vue.use(VueElectron) is called before creating the root Vue instance.
Only use vue-electron in Electron renderer process. Check if window.require is available.
Run 'npm install vue-electron' and ensure import path is correct: 'vue-electron' not 'vue-electron/dist/...'.