Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exe/asar archive created with jwt-decode(3.1.2) does not work #1503

Open
ssrakesh opened this issue Apr 19, 2023 · 1 comment
Open

exe/asar archive created with jwt-decode(3.1.2) does not work #1503

ssrakesh opened this issue Apr 19, 2023 · 1 comment
Labels

Comments

@ssrakesh
Copy link

ssrakesh commented Apr 19, 2023

Preflight Checklist

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

Issue Details

  • Electron Packager Version:
    17.1.1
  • Electron Version:
    v20.0.1
  • Operating System:
    Windows 11 x64
  • Last Known Working Electron Packager version::
    NA

Expected Behavior

Actual Behavior

To Reproduce

-build a simple electron(v20.0.1) application.
-in main.js include
const jwtDecode = require('jwt-decode');
-open the project/folder in vs code. press F5 to debug
-no issues

-include electron-packager(17.1.1) library
-build the project using this to make x64 exe
-run the exe
error reported
[2023-04-19 23:27:15.933] [error] App: Crash in Main: Error: Cannot find module 'app.asar\node_modules\jwt-decode\build\jwt-decode.cjs.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:360:19)
at Module._findPath (node:internal/modules/cjs/loader:573:18)
at Module._resolveFilename (node:internal/modules/cjs/loader:926:27)
at n._resolveFilename (node:electron/js2c/browser_init:245:1105)
at Module._load (node:internal/modules/cjs/loader:785:27)
at c._load (node:electron/js2c/asar_bundle:5:13343)
at Module.require (node:internal/modules/cjs/loader:1012:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (drive:\folder\main.js:12:32)
at Module._compile (node:internal/modules/cjs/loader:1120:14)

@welcome
Copy link

welcome bot commented Apr 19, 2023

👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can.

To help make it easier for us to investigate your issue, please follow the contributing guidelines.

@ssrakesh ssrakesh changed the title exe created with jwt-decode(3.1.2) does not work exe/asar archive created with jwt-decode(3.1.2) does not work Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant