Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Module did not self-register #1536

Closed
lateiskate opened this issue Mar 16, 2020 · 3 comments
Closed

Error: Module did not self-register #1536

lateiskate opened this issue Mar 16, 2020 · 3 comments

Comments

@lateiskate
Copy link

Issue or Feature

I can't seem to run my app with canvas... I keep getting a Module did not self-register error.

Error: Module did not self-register: '/home/app/node_modules/canvas/build/Release/canvas.node'.
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1208:18)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/home/app/node_modules/canvas/lib/bindings.js:3:18)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)
at Function.Module._load (internal/modules/cjs/loader.js:901:14)
at Module.require (internal/modules/cjs/loader.js:1044:19)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.<anonymous> (/home/app/node_modules/canvas/lib/canvas.js:9:18)
at Module._compile (internal/modules/cjs/loader.js:1158:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1178:10)
at Module.load (internal/modules/cjs/loader.js:1002:32)

**Something perhaps worth noting, I'm using worker_threads too, not sure if that means anything but yeah.

Your Environment

Thank you.

@zbjornson
Copy link
Collaborator

Node-canvas doesn't work with worker threads yet, see #1394.

@nedasoo
Copy link

nedasoo commented Mar 15, 2021

Any estimation on when worker_threads support is going to be implemented?

@joshkel
Copy link

joshkel commented Nov 10, 2023

This will be addressed by #2235, which is expected to be released in node-canvas 3.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants