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

Symbol Lookup Error: undefined symbol: node_module_register #8574

Closed
mrkking opened this issue Jan 30, 2024 · 1 comment
Closed

Symbol Lookup Error: undefined symbol: node_module_register #8574

mrkking opened this issue Jan 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@mrkking
Copy link

mrkking commented Jan 30, 2024

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 OR mkdir new-app && bun init - I've tried both ways.
bun add canvas
create code:

// index.ts
import {createCanvas} from "canvas";
const canvas = createCanvas(200, 200);
console.log(canvas);

Run 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.

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.

@mrkking mrkking added the bug Something isn't working label Jan 30, 2024
@Electroid
Copy link
Contributor

Duplicate of #5835

@Electroid Electroid marked this as a duplicate of #5835 Feb 1, 2024
@Electroid Electroid closed this as not planned Won't fix, can't repro, duplicate, stale Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants