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.

Extraneous dependencies with Yarn v3

See original GitHub issue

Issue Description

When I try to use Putout with Yarn v3, I get the following error:

🐊 @putout/formatter-progress-bar: simport tried to access @putout/formatter-progress-bar, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: @putout/formatter-progress-bar (via "@putout/formatter-progress-bar/package.json")
Required by: simport@npm:1.2.0 (via /Users/evgeny/Downloads/putout-yarn3/.yarn/cache/

Steps to reproduce:

  1. git clone
  2. cd putout-yarn3
  3. yarn
  4. yarn putout .

Looks similar to

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:16 (11 by maintainers)

github_iconTop GitHub Comments

coderaisercommented, Oct 3, 2022

… states that standalone usage of 🐊Putout is limited to <= v22

That’s no longer the case, 🐊Putout uses lower version of chalk, and yarn PnP is supported.

coderaisercommented, Dec 15, 2021

Landed support of yarn PnP in 🐊Putout v22.8.0 🎉 ! Is it works for you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why (and How Can I FIx) ESLint import/no-extraneous ...
I solved it simply by setting devDependencies to true. By default it is false. "import/no ...
Read more >
eslint-plugin-import | Yarn - Package Manager
This plugin intends to support linting of ES2015+ (ES6+) import/export syntax, and prevent issues with misspelling of file paths and import names. All...
Read more >
Yarn prune, yarn publish and yarn remove CLI commands
This tutorial will show you how to remove extraneous dependencies, how to publish your package as well as how to remove a package...
Read more >
Yarn workspaces and mono repos - Jujens' blog
We migrated to Yarn 3. · We created a top level package. · We removed all the node_modules folder and yarn. · Since...
Read more >
Fix eslint error of import/no-extraneous-dependencies (#11884)
Fix eslint error of import/no-extraneous-dependencies - Add history ... resolved " ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found