Why is my yarnrc.yml file missing from my project?

7.4k Views Asked by At

I'm on yarn version 3.2.0 and trying to deploy a project on Heroku and it's telling me that I need the yarnrc.yml file but it is missing. I've tried running yarn, yarn install, yarn set version berry, and yarn set version stable but the file will not auto generate. I also created a brand new project and tried yarn init -2 but still no rc file.. Any suggestions?

1

There are 1 best solutions below

2
On

had the same problem, I ended up creating the file by myself. Take care, that the error message from Heroku is missleading and the file requires a prefixed dot: .yarnrc.yml

First line is for opting out of Plug&Play, second line points to the local yarn release (might depend on your version)

nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-3.2.1.cjs