Skip to content

unpack native modules 7.11.1 #4142

@xunrua

Description

@xunrua

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.

Forge version

7.11.1

Electron version

36.5.0

Operating system

window 11

Last known working Forge version

7.11.1

Expected behavior

The @electron-forge/plugin-auto-unpack-natives plugin should automatically unpack native modules like serialport and ensure they work properly within the Electron app.

Actual behavior

Despite configuring the @electron-forge/plugin-auto-unpack-natives plugin, the serialport native module is not being unpacked, causing it to fail to work correctly.

Steps to reproduce

Create a new Electron app using the command npx create-electron-app@latest my-app --template=vite-typescript.

Install and configure the @electron-forge/plugin-auto-unpack-natives plugin.

Install the serialport module and reference it in the project.

Run the app and check whether the serialport module is properly unpacked and working.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions