Berry: [Bug] An unexpected error occurred: "Invalid value type 2:0 in [root]/berry/.yarnrc".

Created on 7 May 2019  ·  4Comments  ·  Source: yarnpkg/berry

Describe the bug

When I run yarn build:cli, I am getting this error An unexpected error occurred: "Invalid value type 2:0 in [root]/berry/.yarnrc".

I don't get this error if I check out earlier commits in this repo.

To Reproduce

Run yarn build:cli on your berry directory.

Environment if relevant (please complete the following information):

  • OS: OSX
  • Node version: 8.9.2
  • Yarn version: v1.15.2
bug

Most helpful comment

Ah! I just got that the problem was different from what I originally assumed: since we now use a yaml-like syntax for our yarnrc files, you need to have Yarn 1.16+ in your global PATH to parse them properly.

The 1.16 is currently an rc release; check the install instructions to see various ways to install it (I'll move it to stable this week-end).

All 4 comments

Thanks for the report! I've updated the local bundle, it should be fixed 👍

Ah! I just got that the problem was different from what I originally assumed: since we now use a yaml-like syntax for our yarnrc files, you need to have Yarn 1.16+ in your global PATH to parse them properly.

The 1.16 is currently an rc release; check the install instructions to see various ways to install it (I'll move it to stable this week-end).

Furthermore, if the initial installation was done with homebrew on Mac.

➜ brew uninstall yarn
Uninstalling /usr/local/Cellar/yarn/1.13.0... (14 files, 4.7MB)

Then all works fine using the recommended above.

I just hit this as well because I was using Yarn 1.13, I'll upgrade to 1.16 but it might be worth adding something to the README.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dzintars picture dzintars  ·  3Comments

thealjey picture thealjey  ·  4Comments

kiprasmel picture kiprasmel  ·  3Comments

chrisands picture chrisands  ·  3Comments

mormahr picture mormahr  ·  3Comments