Open AllanZhengYP opened 2 years ago
I'm guessing this is the same issue as https://github.com/yarnpkg/berry/issues/4157, can you test with Node.js v16.14 or v17.4?
@merceyz Thank you for the response. I tested on v16.14 but still got no luck:
System:
OS: macOS 12.2.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 16.14.2 - /private/var/folders/28/yhtzwdv94rg8cf93ncdjc02h0000gr/T/xfs-79ab10bc/node
Yarn: 3.2.0 - /private/var/folders/28/yhtzwdv94rg8cf93ncdjc02h0000gr/T/xfs-79ab10bc/yarn
npm: 8.5.0 - ~/.nvm/versions/node/v16.14.2/bin/npm
@merceyz The issue still exists, can you take another look?
Hi! 👋
This issue looks stale, and doesn't feature the reproducible
label - which implies that you didn't provide a working reproduction using Sherlock. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it or you edit your first post to include a formal reproduction (you can use the playground for that).
Note that we require Sherlock reproductions for long-lived issues (rather than standalone git repositories or similar) because we're a small team. Sherlock gives us the ability to check which bugs are still affecting the master branch at any given point, and decreases the amount of code we need to run on our own machines (thus leading to faster bug resolutions). It helps us help you! 😃
If you absolutely cannot reproduce a bug on Sherlock (for example because it's a Windows-only issue), a maintainer will have to manually add the upholded
label. Thanks for helping us triaging our repository! 🌟
I attempted to reproduce the issue, but didn't have any luck. Are you able to provide a repository that allows for a minimal reproduction of the behavior?
I can reproduce with the following commands
docker run --rm -it node:16.15.0 bash
mkdir foo
cd foo
corepack enable
corepack prepare yarn@3.2.1 --activate
yarn init
yarn add @mixer/parallel-prettier@2.0.1 concurrently@7.0.0
yarn pprettier --write ./package.json
Interesting discovery... after running yarn config set pnpEnableEsmLoader false
, it starts working. I wonder if this is some type of dynamic import type issue, or the issue Node.js had for a while with child_process
es not being ready when loaded under ESM.
Self-service
Describe the bug
We use the dependency
@mixer/parallel-prettier
to prettify our huge codebase in parallel. However, formatting process hangs if the dependency co-exists with some other dependencies(i.e.concurrently
). I looked into the source code, it looks normal, other than it usescluster
module.To reproduce
Playground
Environment
Additional context
I did a search in our other dependencies, it seems like many other dependencies will cause the same issue like
concurrently
:I don't think they share a lot commonalities.