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

Undefined Symbol node_module_register with node-canvas #26347

Closed
astralstriker opened this issue Oct 17, 2024 · 3 comments
Closed

Undefined Symbol node_module_register with node-canvas #26347

astralstriker opened this issue Oct 17, 2024 · 3 comments

Comments

@astralstriker
Copy link

astralstriker commented Oct 17, 2024

What version of Deno is running?

2.0.0

What platform is your computer?

x86_64-unknown-linux-gnu

What steps can reproduce the bug?

install canvas using deno install --allow-scripts npm:canvas
Put import { createCanvas, loadImage } from 'canvas' into any file
Run deno run --allow-all main.ts

What is the expected behavior?

Deno should run without an error.

What do you see instead?

deno: symbol lookup error: /home/jai/Projects/surety-seven-worker/node_modules/.deno/canvas@2.11.2/node_modules/canvas/build/Release/canvas.node: undefined symbol: node_module_register

@devsnek
Copy link
Member

devsnek commented Oct 17, 2024

canvas is using APIs which are not supported as part of the Node-API: https://nodejs.org/api/n-api.html#implications-of-abi-stability

It looks like they have migrated to use node_api (Automattic/node-canvas@ce29f69) but have not released these changes to npm yet. I'd recommend asking them about when they will release these changes.

@devsnek devsnek removed the bug Something isn't working correctly label Oct 17, 2024
@astralstriker
Copy link
Author

Thanks for the update, I will ask there.

@lucacasonato
Copy link
Member

Closing as this is an upstream issue.

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

No branches or pull requests

4 participants