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 cannot read/import linked dependencies (bun link) #11153

Closed
ddemile opened this issue May 17, 2024 · 3 comments
Closed

Bun cannot read/import linked dependencies (bun link) #11153

ddemile opened this issue May 17, 2024 · 3 comments
Labels
bug Something isn't working npm Something that relates to the npm-compatible client

Comments

@ddemile
Copy link

ddemile commented May 17, 2024

What version of Bun is running?

1.1.8+89d25807f

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

  1. Create a dependency (named my-dep for example)
  2. Run bun link
  3. Go to a new project
  4. Run bun link my-dep
  5. Import the dependency in your code
  6. Run the program

What is the expected behavior?

No response

What do you see instead?

The code exit with an error (error: Unexpected reading "C:\Users\Utilisateur\Documents\Programmation\Projets JavaScript\Test\python-bindings-bun\node_modules\my-dep")
image

Additional information

image
image

@ddemile ddemile added the bug Something isn't working label May 17, 2024
@Electroid Electroid added the npm Something that relates to the npm-compatible client label May 17, 2024
@greglaych
Copy link

Same problem, there is a symbolic link in node_modules, but bun doesn't see it:
error: Unexpected reading "C:\Users\main\workspace\server\node_modules\test-server"
Maybe Bun can't read it or something like that..
Platfrom - Microsoft Windows 11 Home (23H2 build 22631.3593)

@Jarred-Sumner
Copy link
Collaborator

Duplicate of #10469

@Jarred-Sumner Jarred-Sumner marked this as a duplicate of #10469 May 20, 2024
@Jarred-Sumner
Copy link
Collaborator

Jarred-Sumner commented May 20, 2024

This is fixed in Bun v1.1.9, which releases in a few hours.

To get the fix early:

bun upgrade --canary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working npm Something that relates to the npm-compatible client
Projects
None yet
Development

No branches or pull requests

4 participants