Extraneous dependencies with Yarn v3
See original GitHub issueWhen 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/simport-npm-1.2.0-c4f61c3792-85716020b4.zip/node_modules/simport/simport.js)
Steps to reproduce:
git clone git@github.com:EvgenyOrekhov/putout-yarn3.git
cd putout-yarn3
yarn
yarn putout .
Looks similar to https://github.com/coderaiser/putout/issues/92.
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (11 by maintainers)
Top 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 "https://registry.yarnpkg.com/resolve-pathname/-/resolve-pathname-3.0.0.tgz ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That’s no longer the case, 🐊Putout uses lower version of chalk, and yarn PnP is supported.
Landed support of yarn PnP in 🐊
Putout v22.8.0
🎉 ! Is it works for you?