We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.0.25+a8ff7be64
Pop-OS - Linux 6.6.10-76060610-generic x86_64 x86_64
bun create elysia new-app OR mkdir new-app && bun init - I've tried both ways. bun add canvas create code:
bun create elysia new-app
mkdir new-app && bun init
bun add canvas
// index.ts import {createCanvas} from "canvas"; const canvas = createCanvas(200, 200); console.log(canvas);
Run bun index.ts
bun index.ts
Output:
symbol lookup error: /<path-to-project>/node_modules/canvas/build/Release/canvas.node: undefined symbol: node_module_register
this happens with other libraries too e.g. dockerode on the latest version of BunJS. Following the same steps with yarn or npm works perfectly fine.
for the canvas, it should create a canvas instance as seen in npm docs: https://www.npmjs.com/package/canvas
and output should be: [Canvas 200x200]
error:/<path-to-project>/node_modules/canvas/build/Release/canvas.node: undefined symbol: node_module_register
/<path-to-project>/node_modules/canvas/build/Release/canvas.node: undefined symbol: node_module_register
Not sure if this is the right area for this, let me know and i can take down and post elsewhere.
The text was updated successfully, but these errors were encountered:
Duplicate of #5835
Sorry, something went wrong.
No branches or pull requests
What version of Bun is running?
1.0.25+a8ff7be64
What platform is your computer?
Pop-OS - Linux 6.6.10-76060610-generic x86_64 x86_64
What steps can reproduce the bug?
bun create elysia new-app
ORmkdir new-app && bun init
- I've tried both ways.bun add canvas
create code:
Run
bun index.ts
Output:
this happens with other libraries too e.g. dockerode on the latest version of BunJS. Following the same steps with yarn or npm works perfectly fine.
What is the expected behavior?
for the canvas, it should create a canvas instance as seen in npm docs:
https://www.npmjs.com/package/canvas
and output should be: [Canvas 200x200]
What do you see instead?
error:
/<path-to-project>/node_modules/canvas/build/Release/canvas.node: undefined symbol: node_module_register
Additional information
Not sure if this is the right area for this, let me know and i can take down and post elsewhere.
The text was updated successfully, but these errors were encountered: