question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Yarn 2 Dependency Issues

See original GitHub issue

Bug report

Describe the bug

There seems to be some dependency issues with v9.3.4 when using Yarn 2. First one I ran into seems to be here: https://github.com/zeit/next.js/blob/7f8f149f9986afd8cb916e27eb231bacaad9dc9d/packages/next/build/utils.ts#L6 I was able to work around it by unplugging next, and changing that to next/dist/compiled/strip-ansi.

But then I started hitting other roadblocks. For example, autodll-webpack-plugin is using find-cache-dir (which I noticed is listed as an external), but it is not listed as a dependency for that package. As a matter of fact, its package.json appears to be quite minimal. It looks to me to be a product of the your build process? I’ll be honest: I didn’t take much time to analyze it. I thought you guys would be better equipped to deal with this.

To Reproduce

Expected behavior

It should start the dev server

System information

  • OS: Linux
  • Browser (if applies): Chrome
  • Version of Next.js: v9.3.4

Additional context

v9.3.3 works fine 🤷‍♂️

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
timneutkenscommented, Apr 6, 2020

This has been fixed already today:

  • The strip-ansi case was removed (see #11684)
  • mkdir was missing (see #11699)
  • find-cache-dir was missing (see #11699)
0reactions
balazsorban44commented, Jan 30, 2022

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Yarn 2 package manager: some undeclared dependencies
Purpose built for resolving these kind of dependency issues in upstream packages. You can use the advice from the YN0002 messages and yarn...
Read more >
Troubleshooting | Yarn
This error simply means that the specified package is requiring something without explicitly declaring it in its dependencies. Since this behavior is unsafe ......
Read more >
Supported technologies: Yarn 2 - Wallaby.js
Resolving Dependency Issues. Some Wallaby internals need to dynamically load your project dependencies and patch them both at runtime and in the file...
Read more >
Migrating our Monorepo to Yarn 2 | DoltHub Blog
I initially decided to upgrade our repository when I came across one of Yarn 2's new commands researching a solution to a dependency...
Read more >
Yarn 2 the new Package Manager | Blake Rogan
pnp.js to find packages and their dependencies, compared to needing to walk the node_modules folder for each dependency. The Problem. However, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found