Yarn 4.0.0 seems to not be working on building
Not sure what has changed over the past few days but my builds are failing citing Yarn issues.
This was the build output 4 days ago:
Now when I build the same project it gives me the following error:
The only PR change was upgrading Vite to 4.5.0 from 4.4.10
12:23:53.043 Detected the following tools from environment: [email protected], [email protected], [email protected]
12:23:53.467 Preparing [email protected] for immediate activation...
12:23:54.333 Installing project dependencies: yarn
12:23:55.444 ➤ YN0000: · Yarn 4.0.0
12:23:55.467 ➤ YN0000: ┌ Resolution step
12:23:55.694 ➤ YN0000: └ Completed in 0s 227ms
12:23:55.729 ➤ YN0000: ┌ Fetch step
12:24:03.050 ➤ YN0013: │ 570 packages were added to the project (+ 420.98 MiB).
12:24:03.050 ➤ YN0000: └ Completed in 7s 321ms
12:24:03.082 ➤ YN0000: ┌ Link step
// Stuff that isn't important
12:24:19.197 ➤ YN0000: └ Completed in 16s 115ms
12:24:19.284 ➤ YN0000: · Done in 23s 841ms
12:23:53.043 Detected the following tools from environment: [email protected], [email protected], [email protected]
12:23:53.467 Preparing [email protected] for immediate activation...
12:23:54.333 Installing project dependencies: yarn
12:23:55.444 ➤ YN0000: · Yarn 4.0.0
12:23:55.467 ➤ YN0000: ┌ Resolution step
12:23:55.694 ➤ YN0000: └ Completed in 0s 227ms
12:23:55.729 ➤ YN0000: ┌ Fetch step
12:24:03.050 ➤ YN0013: │ 570 packages were added to the project (+ 420.98 MiB).
12:24:03.050 ➤ YN0000: └ Completed in 7s 321ms
12:24:03.082 ➤ YN0000: ┌ Link step
// Stuff that isn't important
12:24:19.197 ➤ YN0000: └ Completed in 16s 115ms
12:24:19.284 ➤ YN0000: · Done in 23s 841ms
12:43:37.155 Detected the following tools from environment: [email protected], [email protected], [email protected]
12:43:37.558 Preparing [email protected] for immediate activation...
12:43:38.347 Installing project dependencies: yarn
12:43:38.990 Internal Error: ENOENT: no such file or directory, stat '/opt/buildhome/repo/.yarn/releases/yarn-4.0.0.cjs'
12:43:38.991 Error: ENOENT: no such file or directory, stat '/opt/buildhome/repo/.yarn/releases/yarn-4.0.0.cjs'
12:43:39.004 Error: Exit with error code: 1
12:43:39.004 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
12:43:39.005 at Object.onceWrapper (node:events:652:26)
12:43:39.005 at ChildProcess.emit (node:events:537:28)
12:43:39.005 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
12:43:39.012 Failed: build command exited with code: 1
12:43:40.961 Failed: error occurred while running build command
12:43:37.155 Detected the following tools from environment: [email protected], [email protected], [email protected]
12:43:37.558 Preparing [email protected] for immediate activation...
12:43:38.347 Installing project dependencies: yarn
12:43:38.990 Internal Error: ENOENT: no such file or directory, stat '/opt/buildhome/repo/.yarn/releases/yarn-4.0.0.cjs'
12:43:38.991 Error: ENOENT: no such file or directory, stat '/opt/buildhome/repo/.yarn/releases/yarn-4.0.0.cjs'
12:43:39.004 Error: Exit with error code: 1
12:43:39.004 at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)
12:43:39.005 at Object.onceWrapper (node:events:652:26)
12:43:39.005 at ChildProcess.emit (node:events:537:28)
12:43:39.005 at ChildProcess._handle.onexit (node:internal/child_process:291:12)
12:43:39.012 Failed: build command exited with code: 1
12:43:40.961 Failed: error occurred while running build command
1 Reply
Okay found the issue, when upgrading, it deleted a cjs file but when reverting it did not restore it.