Migrating monorepo to Bun.js: Dependency loop #3350
Replies: 2 comments 1 reply
-
We will change the error to show which package@version are conflicting with which dependency so that you can have more info on what's going wrong. Maybe something needs to be set as a peer dependency If you're curious, this is the line where that happens: Line 475 in 83d7ec7 |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks Jared, this is great news! I'll give it another go soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there. I've been wanting to migrate my large typescript monorepo (300+ packages, 100.000+ lines of code) to bun quite a while now, and last few days I've finally given it a try!
The first problem I encountered the one I'm still stuck at unfortunately: Dependency loop
In the yarn workspace it installed fine, even with countless inter-package dependencies. The only problem sometimes was building. But to attempt to improve it, I spent some days building a system that detects which packages depend on each other and removed all the circular dependencies. Also I used madge and cleaned up all inter-file circular dependencies.
So I expected it to work after that.... but still! I get the same error.
As I couldn't find any issues about it, I wanted to post this here as anyone might have experience with it and solved it. Also maybe it would be nice to have some resources on how to smoothen the migration from large node.js projects. At the moment it's not really drop-in, imho.
My idea on what to do next is to sort all my packages into layers of dependency, and move them into bun one by one, until I find which one generates the dependency loop. But that'll have to wait until I can make another few days for this.
My theories of what caused it:
Maybe I'm completely looking at it in the wrong way, any thoughts/ideas are welcome!
Beta Was this translation helpful? Give feedback.
All reactions