Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

can not use bsdiff-node in worker_threads #19

Closed
zpbc007 opened this issue Oct 15, 2021 · 5 comments
Closed

can not use bsdiff-node in worker_threads #19

zpbc007 opened this issue Oct 15, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@zpbc007
Copy link

zpbc007 commented Oct 15, 2021

Hi there..

I try to use bsdiff-node in nodejs worker_threads,but got the error : " Module did not self-register."

[Nest] 76026  - 10/15/2021, 6:09:35 PM   ERROR [ExceptionsHandler] Module did not self-register: '/Users/zhaopeng06/Documents/code/kuaishou/yoda-backstage/node_modules/bsdiff-node/build/Release/bsdiff.node'.
Error: Module did not self-register: '/Users/zhaopeng06/Documents/code/kuaishou/yoda-backstage/node_modules/bsdiff-node/build/Release/bsdiff.node'.
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1122:18)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/Users/zhaopeng06/Documents/code/kuaishou/yoda-backstage/node_modules/bsdiff-node/index.js:3:16)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)

probably related to #21783?

@gaetandezeiraud
Copy link
Owner

Can you create a minimal reproduction project?

@gaetandezeiraud gaetandezeiraud added the bug Something isn't working label Oct 16, 2021
@gaetandezeiraud
Copy link
Owner

Can you say me if it is working with this branch https://github.com/Brouilles/bsdiff-node/tree/context-aware

@zpbc007
Copy link
Author

zpbc007 commented Oct 17, 2021

It works, thanks a lot~

@gaetandezeiraud
Copy link
Owner

Great. I merge it soon in master and release a new version.

@gaetandezeiraud
Copy link
Owner

2.4.0 now available on npm.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants