Berry: Failed in Link step for @ampproject/toolbox-optimizer@npm:2.4.0

Created on 10 Jul 2020  路  1Comment  路  Source: yarnpkg/berry

Describe the bug

Hey Guys, today i decided to try yarn v2 on my new project with nextjs. However I can't seem to get it work, it was fine to install with yarn 1 and npm (node v12.18.1).

Its pretty easy to reproduce and i'm not really sure what is happening

To Reproduce

Follow this template to setup nextjs with tailwind

Follow this to upgrade yarn to v2 only for the project

yarn create next-app --example with-tailwindcss with-tailwindcss-app

cd with-tailwindcss
yarn policies set-version berry # below v1.22
yarn set version berry    
yarn

Then you got the error

Screenshots

Screen Shot 2020-07-10 at 9 00 09 pm

Screen Shot 2020-07-10 at 9 02 01 pm

Environment if relevant (please complete the following information):

  • OS: OSX 10.15.5
  • Node version 12.18.1
  • Yarn version 2.1.1

Can anyone please help?

I'm pretty excited in using yarn v2

Thanks everyone

bug

Most helpful comment

It has been fixed in the canary version of next

>All comments

It has been fixed in the canary version of next

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bessonov picture Bessonov  路  4Comments

Santas picture Santas  路  3Comments

chrisands picture chrisands  路  3Comments

mormahr picture mormahr  路  3Comments

milichev picture milichev  路  3Comments