Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Cannot use remote.app in renderer #773

@moeen

Description

@moeen

I have a database connection in renderer dir and I have to get userData path using app.getPath.

Here is the code:

import { remote } from 'electron'
let databaseAddress = path.join(remote.app.getPath('userData'), 'db.db')

But it thorws an error which is:
error

  • Node version: v10.15.0
  • NPM version: 6.4.1
  • vue-cli version: 3.2.1
  • Operating System: Ubuntu 18.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions