Closed (fixed)
Project:
Drupal core
Version:
10.2.x-dev
Component:
javascript
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Mar 2024 at 11:54 UTC
Updated:
19 Jun 2025 at 07:48 UTC
Jump to comment: Most recent
Comments
Comment #2
alexpottThis is even more important when corepack becomes manadatory for developing on multiple core branches following #3109556: Update from Yarn 1 to Yarn 4
Comment #4
alexpottComment #5
longwaveWhile I couldn't reproduce this locally (I am on an older NodeJS/corepack setup than Alex) I think this is a good idea:
packageManageris set but corepack is not enabled, which will help users get it installed locally.Comment #6
alexpottCommitting because I cannot commit to Drupal until this is merged... lol
Committed and pushed ef8b6e30b8 to 11.x and 2c9040ee8f to 10.3.x and c13f63ce92 to 10.2.x. Thanks!
Comment #11
xjmThis broke my commit workflow and unfortunately took a bit of head-desking to figure out what was going on; I spent quite a bit of time tearing apart and rebuilding my toolchain before I understood the problem. From the yarn page about corepack:
I think this needs a change record and probably a handbook page update somewhere. I already updated https://github.com/alexpott/d8githooks/blob/main/README.md but that's not what 99.99% of people using core's build tooling locally will reference. :)
Comment #12
xjmIn terms of change records we can probably just add to the main Yarn 4 one at https://www.drupal.org/node/3428571; doing that now.
Comment #13
xjmUpdated the CR; still needs to go in the handbook setup instructions somewhere though.
Comment #14
quietone commentedThis was include in Frontend Developer tools for Drupal core in Sep 2022. I searched the Drupal wiki for other places this information needed to be included and could not find any other suitable page.
Therefor I am going to restore the fixed status. If someone has a better idea, re-open and add a comment.
Comment #16
xjmAmending attribution, and also crediting @quietone for the docs info.