Skip to content

Can't resolve './build/Debug/watcher.node' in '/.../myApp/node_modules/@parcel/watcher'Β #215

@stoefln

Description

@stoefln

I am trying to use parcel watcher v2.5.1 in my electron app (using electron v12), but webpack reports an error:

Module not found: Error: Can't resolve './build/Release/watcher.node' in '/Users/.../myApp/node_modules/@parcel/watcher'
 @ ./app/lib/FileManager.js 26:0-43 615:21-38 740:21-38 811:21-38 873:21-38
 @ ./app/stores/UiStore.js 29:0-48 554:24-50
 @ ./app/App.js 73:0-42 445:22-36
 @ ./app/main.js 30:12-39 112:2-115:4 112:29-115:3

My code looks like this:

const watcher = require('@parcel/watcher');

When I check the dir module dir, it does not contain a build folder. What am I missing?
I guess there is no prebuilt binary for such an old electron version, but for several reasons I can't upgrade.

Any advice how to go forward?

Thank you for this amazing contribution!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions