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 x throws error: unrecognised dependency format #3675

Open
james-elicx opened this issue Jul 18, 2023 · 5 comments
Open

bun x throws error: unrecognised dependency format #3675

james-elicx opened this issue Jul 18, 2023 · 5 comments
Labels
bug Something isn't working bun install Something that relates to the npm-compatible client

Comments

@james-elicx
Copy link
Contributor

james-elicx commented Jul 18, 2023

What version of Bun is running?

1.0.7

What platform is your computer?

Linux 5.15.90.1-microsoft-standard-WSL2 x86_64 x86_64

What steps can reproduce the bug?

Run the following in your terminal window, using a custom registry's url instead of a package from npm.

bun x https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/5592910039/npm-package-next-on-pages-386

What is the expected behavior?

It should install and execute the package from the provided web address.

When you run it with npx instead of bun x, everything works as expected - it will install and execute the package.

$ npx https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/5592910039/npm-package-next-on-pages-386
⚡️ @cloudflare/next-on-pages CLI v.0.0.0-77f3b08 (prerelease for PR #386)

...

What do you see instead?

error: unrecognised dependency format: https://prerelease-registry.devprod.cloudflare.dev/next-on-pages/runs/5592910039/npm-package-next-on-pages-386

Additional information

No response

@james-elicx james-elicx added the bug Something isn't working label Jul 18, 2023
@james-elicx james-elicx changed the title [bun x] error: unrecognised dependency format bun x throws error: unrecognised dependency format Jul 18, 2023
@Electroid Electroid added the bun install Something that relates to the npm-compatible client label Jul 18, 2023
@Jarred-Sumner
Copy link
Collaborator

This should be fixed as of Bun v1.0.3

@james-elicx
Copy link
Contributor Author

This should be fixed as of Bun v1.0.3

Still happening in 1.0.4

image

@Jarred-Sumner Jarred-Sumner reopened this Oct 7, 2023
@Jarred-Sumner
Copy link
Collaborator

oh you're doing bun x i see

@james-elicx
Copy link
Contributor Author

Ah I didn't know there was a difference with how bun x and bunx treat it. Interestingly, bunx results in a different error.

image

@btakita
Copy link

btakita commented Oct 14, 2023

I also get a loading error when running bun -b astro dev. It seems like the problem occurs when invoking a subprocess which requires a '.node' file, as running bun directly on the source file does not cause the error.

1:24:42 AM [vite] error while updating dependencies:
Error: Build failed with 2 errors:
../../node_modules/@resvg/resvg-js/js-binding.js:1:3269: ERROR: No loader is configured for ".node" files: ../../node_modules/@resvg/resvg-js-linux-x64-musl/resvgjs.linux-x64-musl.node
../../node_modules/@resvg/resvg-js/js-binding.js:1:3501: ERROR: No loader is configured for ".node" files: ../../node_modules/@resvg/resvg-js-linux-x64-gnu/resvgjs.linux-x64-gnu.node
    at failureErrorWithLog (/home/brian/work/btakita/btakita-dev/node_modules/vite/node_modules/esbuild/lib/main.js:1649:17)
    at <anonymous> (/home/brian/work/btakita/btakita-dev/node_modules/vite/node_modules/esbuild/lib/main.js:1058:17)
    at <anonymous> (/home/brian/work/btakita/btakita-dev/node_modules/vite/node_modules/esbuild/lib/main.js:1525:9)
    at processTicksAndRejections (:55:77)

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

No branches or pull requests

4 participants