Skip to content

using electron ipc in react  #12934

@wenxiwu777

Description

@wenxiwu777

How can I use electron renderer ipc in a react component js file ?
I wrote " const electron = require('electron') or import electron from 'electron' "
it doesn't work, error reports: "Module not' found, can't resolve 'electron' "

DO I have to config webpack or something ?

I'm stuck on this really for a few days. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions