electron / electron/rebuild

Symlinks in node_modules cause ENOENT

Open
#547 2 comments 0 reactions 0 assignees View on GitHub
bug more information needed
Dominant language
TypeScript
Stars
1.1k
Forks
181
Avg merge
6h 44m
Merged PRs (30d)
3

Description

I have a symlinked dependency installed with yarn (`link:../packages/foo`), foo has another symlinked dependency `bar`.

When I run `electron-rebuild`, I get:
```
✖ Rebuild Failed

An unhandled error occurred inside electron-rebuild
ENOENT: no such file or directory, stat '/Users/kaatt/Code/packages/foo/node_modules/bar'

Error: ENOENT: no such file or directory, stat '/Users/kaatt/Code/packages/foo/node_modules/bar'
```

This doesn't go away until I delete the `bar` symlink.

Contributor guide

Open the contributing guide

Research direction

Start with the electron-rebuild command and the symlinked node_modules path shown in the error; trace where that path is stat'ed during rebuild. Reproduce the failure with nested Yarn-linked dependencies, then verify that rebuilding completes without requiring deletion of the bar symlink.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, node.js, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.