-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Install script failing with yarn workspaces #1434
Comments
Could you provide a simple self-contained code sample that demonstrates the problem? I don't use Yarn and don't know what hoisting is or how to set it up myself. It also seems strange that hoisting would break esbuild's install script since esbuild doesn't have any dependencies and hoisting seems to be about dependencies. The call to |
I attempted to replicate the issue with a minimal repo example and ... there was no issue. Back in the repo exhibiting the issue, I realized that I hadn't tried deleting the
|
I ran into the same issue again and this time deleting the yarn.lock file didn't work. When the failure happens it looks like yarn is installing esbuild multiple times in parallel right before failing. There is a similar issue with node-gyp here: yarnpkg/yarn#1874 I ran Could the esbuild install script be made more idempotent / thread safe? |
Ah I also just discovered that I was using different versions of esbuild across packages (0.11.23 and 0.12.15). I just upgraded them all to the latest version. I suspect that was a major contributor to the problem. Feel free to close unless you want to try to take further action. |
I'm going to close this since this is no longer a problem for you and since the installation strategy is about to change: #1621. |
I am getting the following error in my yarn workspace when I disable all hoisting (e.g.
nohoist: ['**/**']
)As a workaround, I have refined my hoisting so that esbuild is hoisted, but it still seems like esbuild install script should function in either case.
The text was updated successfully, but these errors were encountered: