Skip to content

bun issue with node-rdkafka (undefined symbol) #15923

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

Open
amiraliabd opened this issue Dec 21, 2024 · 0 comments
Open

bun issue with node-rdkafka (undefined symbol) #15923

amiraliabd opened this issue Dec 21, 2024 · 0 comments
Labels
bug Something isn't working needs triage

Comments

@amiraliabd
Copy link

amiraliabd commented Dec 21, 2024

What version of Bun is running?

1.1.38

What platform is your computer?

Linux 6.8.0-49-generic x86_64 x86_64 (ubuntu 22.04)

What steps can reproduce the bug?

Just create a new directory and initiate a new project and try to import node-rdkafka.

mkdir test
bun init

add this to package.json (I use volta to manage my node version in different projects, handle it as you like):


"volta": {
"node": "22.12.0"
}

Install node-rdkafka

bun install node-rdkafka

paste this to index.ts

const kafka = require('node-rdkafka')
console.log("HI")

then:

bun index.ts

What is the expected behavior?

I want to use Bun instead of Node-js in my project. I expect it to run, after I run bun index.ts.

What do you see instead?

I get this error related to node-rdkafka package:
bun: symbol lookup error: /home/amirali/bun-test/node_modules/node-rdkafka/build/Release/node-librdkafka.node: undefined symbol: _ZN2v816FunctionTemplate12SetClassNameENS_5LocalINS_6StringEEE

Additional information

No response

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

No branches or pull requests

1 participant