wailsapp / wailsapp/wails

Wails3 - install:frontend:deps hanging with npm link'ed packages.

Open
#4,697 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

awaiting feedback Bug Linux MacOS P2 v3 Windows
Dominant language
Go
Stars
36.3k
Forks
1.9k
Avg merge
2d 11h
Merged PRs (30d)
33

Description

Description

Using npm link to include a local copy of a binary crasheswails build, for example, pro versions you can't bundle with your source repo.

"@fontawesome": "file:~/Code/lib/fontawesome/npm" running npm install works fine, but wails gets an issue:

Image
To Reproduce

use npm link or npm install with a local directory using ~/my-project
wails3 fails to build

Expected behaviour

The fix, is to run with -f, to tell go-task to handle cache checksum's differently.

Screenshots
Image
Attempted Fixes

The fix is to use the node_modules/.bin directory, so the change detection has a far smaller list of files to check; this has a side effect of speeding up the common:install:frontend:deps build step exponentially by the node_module dir size, as thousands of files are ignored.

System Details
* my putter: cpu: beep booper 2000 *
Additional context

PR incoming from: https://github.com/Snider/wails/tree/v3-alpha-fe-npm-gen-fix

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Wails3 task entry point common:install:frontend:deps and inspect how it handles npm link or local-directory dependencies, especially the node_modules/.bin path mentioned in the issue. Reproduce the hang with a linked or ~/my-project dependency, then confirm that the frontend dependency installation and wails build complete without scanning the full node_modules directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, javascript
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.