Electron-builder: Symbolic linked dependency's node_modules is not included in ASAR

Created on 18 Jul 2017  路  5Comments  路  Source: electron-userland/electron-builder


  • Version: 19.16.1

  • Target: mac --dir



If the dependency listed in package.json is a symbolic link, for example, created by yarn link, then that dependency's node_modules is not included in final ASAR, which made target app unable to run. This worked in electron-builder 19.10.0

@wshamim

obsolete

Most helpful comment

@develar, this is still a problem for me. Dependencies which were symbolically linked via yarn link do not get packaged.

All 5 comments

I have the same problem after running lerna bootstrap or npm link xx.

Consider to use yarn workspaces as workaround.

Yarn workspaces didn't help. Symbolic linked dependency's dependencies can't be found.

Yarn placed the symbolic linked sub-packages' dependencies in the parent project's root directory's node_modules, and I think they should be resolved like regular packages.

  • yarn: v1.0.1
  • electron-builder: v19.28.1
  • Target: AppImage

I hope it is fixed now.

@develar, this is still a problem for me. Dependencies which were symbolically linked via yarn link do not get packaged.

Was this page helpful?
0 / 5 - 0 ratings