You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using workspaces. One workspace is called "test" and it imports code from the "common" workspace.
When I run bun test in the "test" workspace, it gives the following error for one of my test files:
error: ENOENT: No such file or directory
at load (/Users/jahooma/manicode/node_modules/node-gyp-build/node-gyp-build.js:26:34)
at /Users/jahooma/manicode/node_modules/tree-sitter/index.js:1:7
The "common" workspace uses the tree-sitter package, which uses the node-gyp-build package.
Bun has stored these packages at the root node_modules of my project.
In the line that errors, node-gyp-build is calling:
I tried using tree-sitter outside a test and it linked me to the napi issue: #158
Seems like this was the problem here. Would have been nice if it threw an appropriate error, because I spent a lot of time trying to figure out why it could not read that file.
What version of Bun is running?
1.1.29+6d43b3662
What platform is your computer?
Darwin 23.5.0 arm64 arm
What steps can reproduce the bug?
I'm using workspaces. One workspace is called "test" and it imports code from the "common" workspace.
When I run
bun test
in the "test" workspace, it gives the following error for one of my test files:The "common" workspace uses the tree-sitter package, which uses the node-gyp-build package.
Bun has stored these packages at the root node_modules of my project.
In the line that errors, node-gyp-build is calling:
This file totally exists on my machine, but throws an error. I don't think I'm doing anything special here.t
What is the expected behavior?
Require should load the file and not throw an error
What do you see instead?
Additional information
No response
The text was updated successfully, but these errors were encountered: