How to debug berry crash? Are there source maps? #6061
Replies: 2 comments
-
Okay, I managed to fix this. We have been pinning the remote docker version in CircleCI and apparently it is super old now. # DO NOT USE THIS!
- setup_remote_docker:
version: 20.10.24
docker_layer_caching: true So if anyone else is doing this just remove From https://circleci.com/docs/building-docker-images/#docker-version
That solved the issue, but perhaps there's an actual bug and this old docker version hits a race condition? I'm still interested in learning if there are ways to debug berry and how to get a better stack trace. |
Beta Was this translation helpful? Give feedback.
-
You're probably running into nodejs/node#48444 so not a bug in Yarn. You can use yarn set version from sources --no-minify --branch "@yarnpkg/cli/4.0.2" If you want source maps you'll have to clone the repo and build Yarn with yarn build:cli --no-minify --source-map then update your project |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to debug a crash we are experiencing in our CI. I have a suspicion what the problem is, but I want to gather more information before I file a bug report.
Are there source maps available for berry? Right now the stack trace is pretty useless so I'm having trouble pinpointing where the source code is. I think it might even be in a dependency.
Alternatively, is there a way to run an un-minified berry?
Here's my stack trace if anyone wants to help me figure out the problem (version 4.0.2):
We're seeing it happen in CircleCI when running
yarn workspaces focus --production
when building our docker container.Would love to learn how to debug this. Thanks!
Edit: I think the bug is similar to this one: browserstack/browserstack-runner#217
Beta Was this translation helpful? Give feedback.
All reactions