Skip to content

In the webpack template, the built local native module .node file cannot be imported directly. #3432

Closed
@Jarvie789

Description

Pre-flight checklist

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project uses.
  • I have searched the issue tracker for a bug that matches the one I want to file, without success.

Electron Forge version

6.4.2

Electron version

v27.0.3

Operating system

macOS 13.5.2

Last known working Electron Forge version

No response

Expected behavior

I am a newbie. Don't know how to debug local native module.

Actual behavior

Even if the regular rules of the src directory are added, exception errors will occur. "Error: Module did not self-register".

Steps to reproduce

image
image
Webpack cannot find this module.
image

Additional information

No response

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions