[Bug] does not recognize `preferDeferredVersions` in .yarnrc.yml
See original GitHub issue- I’d be willing to implement a fix
Describe the bug
yarn 2.0.0-rc.31 does not recognize preferDeferredVersions
in a .yarnrc.yml even though it is mentioned in the docs: https://yarnpkg.com/configuration/yarnrc#preferDeferredVersions
It logs YN0034: Invalid configuration key "preferDeferredVersions" in /path/to/.yarnrc.yml
To Reproduce
const {promises: {readFile, writeFile}} = require(`fs`);
await packageJsonAndInstall({
devDependencies: {}
});
expect(await yarn('config', 'set', 'preferDeferredVersions', 'true')).not.toContain(`Couldn't find a configuration`);
Environment if relevant (please complete the following information):
- OS: Ubuntu 18.04.4 LTS (in WSL2)
- Node version 13.3.0
- Yarn version 2.0.0-rc.31
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Configuration options | Yarn - Package Manager
List of all the configuration option for Yarn (yarnrc files)
Read more >How do I get yarn 2 to work in my project? - Stack Overflow
You have .yarnrc or .yarnrc.yml file in your home directory or in some of the parent folders Yarn 1 finds it and Yarn...
Read more >yarn | Verdaccio
Yarn modern does not recognize --registry or .npmrc file anymore. For defining a registry you must use the .yarnrc.yml located in the root ......
Read more >Strange build error with yarn add - beginner - ReScript Forum
I'm stuck in a very strange error that completely prevents me from building a rescript react application. Why or how this error happens...
Read more >Yarn publish does not work (#121668) · Issues - GitLab
yarnrc.yml and if you added something to the package.json? I have recently migrated to yarn 2 but I am still getting an authentication...
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
Oh yeah, that fixed it, thanks!
What threw me off, is the .yarnrc.yml docs page mixes core options with plugin options. Not sure if there’s a good way to make the difference clearer. https://yarnpkg.com/configuration/yarnrc#preferDeferredVersions
The Configuration pages will be greatly improved - eventually. I’ll make sure that we make the difference clearer.