Bun catalogs dependencies sometimes don't work
kyung-min-sun
PROOP

4 months ago

I've noticed that sometimes dependencies in package.json specified via catalog:foo will fail at build time (it'll try to resolve the dependency as a remote git repo, which isn't the expected behavior).

I'm using Bun 1.2.2 as the base Docker image, so it should work out of the box.

https://bun.com/docs/install/catalogs

$10 Bounty

5 Replies

Railway
BOT

4 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


sammekekko
PRO

4 months ago

Hello! Have you tried using the Railpack builder? I believe it has better support for bun.

Railway might also have a hard time detecting which package manager you are using if not properly specified as well, try adding this to your package.json if the previous solution doesnt work:
```
{

"packageManager": "bun@1.2.2"

}
```


dylan-conway
FREE

4 months ago

Bun added support for catalogs in v1.2.14. Updating the image to use Bun >= v1.2.14 should fix this issue. Before adding support for catalogs, Bun would unfortunately see them as git dependencies and attempt cloning them.


kyung-min-sun
PROOP

4 months ago

Awesome — thank you!


kyung-min-sun
PROOP

4 months ago

Dang, I added "packageManager": "bun@1.2.2" to every package.json file - no luck.


Loading...