Skip to content
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

Build command fails on create-turbo Yarn 4 project #6805

Open
1 task done
MikelArnaiz opened this issue Dec 15, 2023 · 1 comment
Open
1 task done

Build command fails on create-turbo Yarn 4 project #6805

MikelArnaiz opened this issue Dec 15, 2023 · 1 comment
Labels
kind: bug Something isn't working linear: turbo Issues to sync to Linear for Turborepo team owned-by: turborepo

Comments

@MikelArnaiz
Copy link

MikelArnaiz commented Dec 15, 2023

Update

Solved by adding to the .yarnrc.yml the following

nodeLinker: node-modules

The question remains if turbo doesn't support yarn 4 or just Plug'n'Play.


Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/MikelArnaiz/turborepo-build-error-on-fresh-project

What package manager are you using / does the bug impact?

Yarn 4

What operating system are you using?

Mac

Which canary version will you have in your reproduction?

1.11.3-canary.0

Describe the Bug

yarn run build fails on newly created project with yarn dlx create-turbo@latest (also @canary).

yarn build     
...
web:build: > Build error occurred
web:build: Error: Jest worker encountered 1 child process exceptions, exceeding retry limit
web:build:     at ChildProcessWorker.initialize (/Users/mikelarnaiz/projects/turbo/build-error-canary/.yarn/__virtual__/next-virtual-5514c12946/4/.yarn/berry/cache/next-npm-14.0.4-93c7e4ca0b-10c0.zip/node_modules/next/dist/compiled/jest-worker/index.js:1:11580)
web:build:     at ChildProcessWorker._onExit (/Users/mikelarnaiz/projects/turbo/build-error-canary/.yarn/__virtual__/next-virtual-5514c12946/4/.yarn/berry/cache/next-npm-14.0.4-93c7e4ca0b-10c0.zip/node_modules/next/dist/compiled/jest-worker/index.js:1:12545)
web:build:     at ChildProcess.emit (node:events:514:28)
web:build:     at ChildProcess._handle.onexit (node:internal/child_process:291:12) {
web:build:   type: 'WorkerError'
web:build: }
web:build: ERROR: command finished with error: command (/Users/mikelarnaiz/projects/turbo/build-error-canary/apps/web) /private/var/folders/1h/21ml03md75lcgwg74lj5nfmm0000gn/T/xfs-5c153812/yarn run build exited (1)
web#build: command (/Users/mikelarnaiz/projects/turbo/build-error-canary/apps/web) /private/var/folders/1h/21ml03md75lcgwg74lj5nfmm0000gn/T/xfs-5c153812/yarn run build exited (1)

 Tasks:    0 successful, 2 total
Cached:    0 cached, 2 total
  Time:    7.213s 
Failed:    web#build

Expected Behavior

It should build. yarn run dev works as expected.

To Reproduce

nvm use 18
cd ~
corepack enable
yarn set version 4.0.2
yarn -v // 4.0.2
yarn dlx create-turbo@canary // choose yarn
cd to directory
yarn run build // ERROR

Or

Additional context

Is yarn 4, released two months ago, not supported?

Is the missing yarn 4 just needed to be updated?
image

TURBO-1951

@MikelArnaiz MikelArnaiz added kind: bug Something isn't working needs: triage New issues get this label. Remove it after triage owned-by: turborepo labels Dec 15, 2023
@gsoltis gsoltis added linear: turbo Issues to sync to Linear for Turborepo team and removed needs: triage New issues get this label. Remove it after triage labels Dec 18, 2023
@mehulkar mehulkar removed their assignment Mar 7, 2024
@anthonyshew
Copy link
Contributor

@chris-olszewski Are we expected to have support here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working linear: turbo Issues to sync to Linear for Turborepo team owned-by: turborepo
Projects
None yet
Development

No branches or pull requests

4 participants