question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Symbolic linked dependency's node_modules is not included in ASAR

See original GitHub issue
  • 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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
dsanders11commented, Dec 21, 2018

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

2reactions
develarcommented, Feb 1, 2018

I hope it is fixed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Symlinked `node_modules` structure - PNPM
pnpm's node_modules layout uses symbolic links to create a nested structure of dependencies. Every file of every package inside node_modules is a hard...
Read more >
Electron builder not copying my dist/node_modules directory ...
Finally I found the way to do it, I had to tweak the configuration with a property that I found in the docs:...
Read more >
Native Node Modules | Electron
Native Node.js modules are supported by Electron, but since Electron has a different application binary interface (ABI) from a given Node.js binary (due...
Read more >
Options | electron-packager
Walks the node_modules dependency tree to remove all of the packages specified in the devDependencies section of package.json from the outputted Electron app....
Read more >
Npm link set up advice and troubleshooting - Code Buckets
Because npm link works by installing links into your global node_modules, if you change version of node then they will all disappear. This...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found