277390 (2) [Avatar] Offline
#1
You can't access app.getPath / remote.getPath from database.js

https://github.com/SimulatedGREG/electron-vue/issues/334

This worked

main.js
global.userPath = app.getPath('userData');

database.js

import {remote} from 'electron'

use remote.getGlobal('userPath') in place of app.getPath('userData')