Skip to content

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

@Snider

Description

@Snider

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingawaiting feedbackMore information is required from the requestor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions