Skip to content

Site Deploy Fails Using Yarn 2 PnP #169

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

Closed
cravend opened this issue Mar 21, 2021 · 6 comments
Closed

Site Deploy Fails Using Yarn 2 PnP #169

cravend opened this issue Mar 21, 2021 · 6 comments
Labels
priority: low type: bug code to address defects in shipped code

Comments

@cravend
Copy link

cravend commented Mar 21, 2021

Describe the bug
I recently activated Yarn PnP on my site. However, this is causing the validateNextUsage to fail. Switching back to the traditional node_modules fixes the issue.

To Reproduce

  • Create a site using Yarn 2 PnP
  • Install Next and deploy to Netlify

Expected behavior
Site deploys properly.

Versions

  • Next.js: 10.0.9
  • plugin (if installed at fixed version): 3.0.3
@denanceapp
Copy link

Any updates on this?

@Aaron-Storm
Copy link

I had the same issue. I "fixed" it too by setting nodeLinker to "node-modules" in yarnrc.yml.
But then no pnp support.

@levino
Copy link

levino commented Jul 13, 2021

Just adding "berry" as a keyword here. Should be addressed asap.

@cravend
Copy link
Author

cravend commented Jul 23, 2021

I've been doing some research on this but haven't had much luck on finding a solution. I did find this issue on Yarn 2's repo that seems to be what we're running into here: yarnpkg/berry#1467

Is there a way for me to locally test this sort of thing? It's a pretty specific issue and I'm not really sure how to get started with it, and I don't see any tests that relate to validateNextUsage.

@electrolyte-orb
Copy link

Is Yarn v2 or v3 used here?

@nickytonline
Copy link

This is something we may address in the future, but for now see https://docs.netlify.com/configure-builds/manage-dependencies/#yarn where it shows you how to configure yarn to set a yarnpath in conjunction with nodelinker.

cc: @kitop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: low type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

8 participants