Open moeen opened 5 years ago
you try direct electron. app not in remote.
import electron from 'electron' let databaseAddress = path.join(electron.app.getPath('userData'), 'db.db')
The code now:
import { electron } from 'electron'
let databaseAddress = path.join(electron.app.getPath('userData'), 'db.db')
Error:
only electron not {electron}:
import electron from 'electron'
Sorry. This one doesn't throw any errors in terminal, but:
I have a database connection in renderer dir and I have to get userData path using app.getPath.
Here is the code:
But it thorws an error which is: