Skip to content

Need better reporting when library cannot be imported due to binary incompatibility #40

@CdTgr

Description

@CdTgr

Description

Getting this error after a project using the library is built with yarn build and executed with node index.js

Error: Could not find wrtc binary on any of the paths: ../build-linux-arm64/wrtc.node,../build-linux-arm64/Debug/wrtc.node,../build-linux-arm64/Release/wrtc.node,@roamhq/wrtc-linux-arm64,./node_modules/@roamhq/wrtc-linux-arm64,./node_modules/@roamhq/wrtc-linux-arm64/wrtc.node

Causes

The lines over here seem a bit obvious as there are no node_modules dirs in the current directory; it should be ../node_modules instead.

image

Suggestion

File: binding.js

- `./node_modules/@roamhq/wrtc-${triple}`,
- `./node_modules/@roamhq/wrtc-${triple}/wrtc.node`,
+ `../node_modules/@roamhq/wrtc-${triple}`,
+ `../node_modules/@roamhq/wrtc-${triple}/wrtc.node`,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions