-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
v19.1.0 nx fails if bun.lockb is present #26053
Comments
Have you got a public repo i can check it out. I maybe link to a previous issue |
This fix add support for bun PM in daemon and affected changes. Helps towards #26053 fix
getting the following error this happens with nestjs project with generatePackageJson true i tested with [19.2.0-beta.0] |
Have you got a repro I can check feels strange all testing around that code and not seen that issue :( even outside and ove been using this as a patch since last year |
sorry for the delay @Jordan-Hall |
having this same or similar issue here: works fine in my personal repo, but not this one no error on 19.1, on 19.2-beta2 I get:
|
@jaysoo I believe this maybe a issue with bun.
Im sorry i've taken a look and i'm unsure about this. When using yarn i get the following error: bun on right yarn on the left https://www.diffchecker.com/o6qeyfg7/ If i run bun install string-width@^4.2.0 it goes to the next one. Sorry i cant be more help here |
Hi, As mentioned in the PR now having a different error when updating to beta-5
|
Yea that's a different issue to one fixed in PR. This related to this issue im struggling tk debug because it's the yarn parser I believe |
So from what I can see it's just the problem of running |
Agree why I'm unsure. They a set error message if it was buffer. The one I debug it looms like lock file maybe wrong installing package directly in package.json it worked fine. Bun lock contains 6000 more likes than standard yarn lock |
@Jordan-Hall did you get a chance to try out this repo |
Yes 1 I was debugging. Looks like yarn and bun producing completely different lock. I installed the package it complained about and it worked fine :/ |
Hmm found something interesting now, If i run This also crashes, so might be time to move this to the bun github as it looks like this is something on their side |
It doesn't respect the yarn lock. But it could well be with bun because yarn not producing same file. Bun.locb is a self execution of that bun install -y |
Using yarn on that repo failed for me too. |
its weird it keeps failing for only nestjs projects |
Here also nestjs, Also the same package.json worked on my WSL environment (I created a new project only with the package.json). Don't know if you are also using windows? |
im using mac |
I was testing if this was really true. So I made a package.json with no nest and still lots of other deps and the issue was still there.
Pushing it to the output Edit; looking at the output this is shoiwng 2x dependencies for that package. might be something to look in to, or this is probably just weird console output |
So, For anyone wondering. This was fixed in version 1.1.12 of bun. I still had to use the canary version to get it working on my win 11 machine. But seems to be something on my side. Thanks to the bun team for fixing this issue ! |
I am using bun 1.1.12 and seeing a similar problem. See the issue I just filed: #26565 . @Jordan-Hall is there any workaround for this problem other than abandoning bun? edit: 1.1.13 is out. It does not fix the problem. |
Not sure atm I'll check your repo put when I get a minute (end of Monday st latest) Sorry for the issues :( |
Getting the same error "Failed to parse bun lockfile" Steps to reproduce:
|
I'm going to close this issue as the original problem with @nodegin It looks like the migrated lockfile that is migrated from |
Today I've run into this issue when trying to build docker image. Here is my Github Action output: Is there something more you need, @jaysoo? Current code is in the repository, I keep fighting with Prisma + Nx + Bun combo and this just another issue that popped up after I moved forward with Prisma issue. :( |
I am getting this error too. The failing part from my logs
|
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
If I keep or add bun.lockb to the project all nx commands fails. If no bun.lockb projects runs fine, if bun.lockb is present then it errors.
Expected Behavior
Project runs like it does without bun.lockb
GitHub Repo
No response
Steps to Reproduce
Example commands that are failing:
Nx Report
Failure Logs
Package Manager Version
npm version 10.2.3 and bun version 1.1.10
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: