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

bun: symbol lookup error: node_modules/robotjs/build/Release/robotjs.node: undefined symbol: node_module_register #5747

Closed
oldwizard1010 opened this issue Sep 19, 2023 · 5 comments
Labels
bug Something isn't working node.js Compatibility with Node.js APIs

Comments

@oldwizard1010
Copy link

oldwizard1010 commented Sep 19, 2023

What version of Bun is running?

1.0.0+822a00c4d508b54f650933a73ca5f4a3af9a7983

What platform is your computer?

Linux 6.2.16-2 x86_64 unknown

What steps can reproduce the bug?

bun install robotjs
bun ./sine.js

sine.js:

var robot = require("robotjs");

// Speed up the mouse.
robot.setMouseDelay(2);

var twoPI = Math.PI * 2.0;
var screenSize = robot.getScreenSize();
var height = (screenSize.height / 2) - 10;
var width = screenSize.width;

for (var x = 0; x < width; x++)
{
	y = height * Math.sin((twoPI * x) / width) + height;
	robot.moveMouse(x, y);
}

robot.moveMouseSmooth(100, 100);

What is the expected behavior?

npm install robotjs
node ./sine.js
"Works fine"

What do you see instead?

bun install robotjs
bun ./sine.js
bun: symbol lookup error: node_modules/robotjs/build/Release/robotjs.node: undefined symbol: node_module_register

Additional information

No response

@oldwizard1010 oldwizard1010 added the bug Something isn't working label Sep 19, 2023
@oldwizard1010
Copy link
Author

same on
1.0.2+37edd5a6e389265738e89265bcbdf2999cb81a49

@Electroid Electroid added the node.js Compatibility with Node.js APIs label Sep 19, 2023
@jairodealmeida
Copy link

Me too.
~/.bun/bin/bun ./bin/www
/home/jdealmeida/.bun/bin/bun: symbol lookup error: /home/.../server/node_modules/bson-ext/build/Release/bson.node: undefined symbol: node_module_register

@obedm503
Copy link

Possible duplicate #4290

@xhyrom
Copy link
Collaborator

xhyrom commented Sep 28, 2023

Duplicate of #4290

@Jarred-Sumner
Copy link
Collaborator

Duplicate of #4290

GitHub will say "not planned", but it is planned - just a duplicate. Please track the status in #4290.

@Jarred-Sumner Jarred-Sumner closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working node.js Compatibility with Node.js APIs
Projects
None yet
Development

No branches or pull requests

6 participants