-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
wp-scripts build fails on Linux when yarn -2 init on Windows #38078
Comments
We plan to publish a new version of Actually you could test with the preview version by installing with;
You might need to remove some of the |
Same issue present with 20.0.1-next.33ec3857e2.0. |
There is a stable version |
From what I can gather, pnp worked from about 19.2.0. It was probably a coincidence, but I first noticed trouble around the mini-css-extract-plugin bug (#38004). In case someone stumbles on this issue tracker, a quicker fix (than setting your version to classic) would be to swap your nodeLinker to "node-modules" as opposed to "pnp". |
We published a new version of |
Help us move this issue forward. This issue is being marked stale since it has no activity after 15 days of requesting more information. Please add info requested so we can help move the issue forward. Note: The triage policy is to close stale issues that need more info and no response after 2 weeks. |
Closing as there isn’t much we can do at the moment but we can always reopen when there is new details about the issue. |
Description
Running a wp-scripts build with custom in points and output-path results in a silent fail. At the very least, a error should be logged in the console or, at best, the build should complete.
This occurs under Linux when the project was initialized on Windows (node 16.2, yarn 3.1.1). Causes pipelines to fail and moving projects across systems an issue.
So far, all attempts to install + build in Windows works. Cloning a repo down, installing, then building under Ubuntu 20.04 and Centos 7 results in a silent fail. Have tried node 16.2 and 16.13.2.
Running
yarn set version classic
under Linux will allow the build to succeed as normal.Step-by-step reproduction instructions
I have pulled an existing project and minimized the src to the smallest possible. I have kept the dependencies.
URL: https://github.com/jonshipman/miniature-barnacle
Windows (specifically 11, but I don't see why 10 shouldn't also work)
git clone https://github.com/jonshipman/miniature-barnacle.git
(I used minGit)cd miniature-barnacle
yarn install
yarn build
Linux (Ubuntu 20.04 in this scenerio)
git clone https://github.com/jonshipman/miniature-barnacle.git
cd miniature-barnacle
yarn install
yarn build
If you drop back down to yarn 1 (
yarn set version classic
) on Linux - it will build successfully. I have employed this in our pipelines to keep work going. However, yarn classic does take 2x-3x longer than yarn cherry. Would like to be able to DX the issue and get a fix out on our side.corepack enable
). If your Node version is <=16.10 you need to install corepack firstnpm install -g corepack
.Screenshots, screen recording, code snippet
Environment info
NodeJS v16.2 & v16.13.2
Yarn 3.1.1
Tested Linux distros:
Ubuntu 20.04, CentOS7
Tested Windows:
Windows 11 Pro - 10.0.22000 Build 22000
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: