Skip to content

Does not include other node_modules packages in compiling #1311

Open
@I2rys

Description

@I2rys

Preflight Checklist

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

Issue Details

  • Electron Packager Version:
    *15.4.0
  • Electron Version:
    *16.0.4
  • Operating System:
    • Microsoft Windows 10 Pro
  • Last Known Working Electron Packager version::
    • None

Expected Behavior

It should be able to include node_modules packages in compiling Including express, discordnitro & other NPM packages.

Actual Behavior

After the compiling, run the compiled EXE file and It should return an error Cannot find module 'discordnitro'

To Reproduce

  1. Open CMD and type this command create-electron-app reproduce, Just an example.
  2. cd to the directory & install discordnitro. npm i discordnitro
  3. Import the discordnitro in the file.
  4. cd to src and build it. cd src && electron-packager ./ reproduce --platform=win32 --arch=x64
  5. Run the compiled EXE file and It should return an error Cannot find module 'discordnitro'.

Additional Information

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions