yarnpkg-v2 Questions
3
I use vite on react, and when i use yarn to "live server" my project two new files are created, .pnp.loader.mjs and .pnp.cjs. What is the purpose of this files?
I never see those files, a...
Ventriloquism asked 30/12, 2022 at 4:12
2
For the OSS Review Toolkit project, I would like to identify which version of yarn is used by a given project in a given repository.
Which criteria should be used ?
There is:
package.json/packageM...
Rist asked 23/5, 2022 at 9:17
4
Solved
For example, I'm trying to upgrade netlify-cli from 17.7.0 to 17.8.1 using yarn upgrade-interactive and the following error happens:
➤ YN0000: · Yarn 4.0.2
➤ YN0000: ┌ Resolution step
➤ YN0082: │ @...
Nomenclator asked 3/12, 2023 at 8:12
3
Solved
I'm using modern Yarn (v3.2.4 to be exact) which differs from Yarn Classic.
I'm using the nodeLinker: node-modules option in .yarnrc.yml so /node_modules are created, and dependencies are not saved...
Antipathetic asked 18/10, 2022 at 1:11
1
I would like to use npmAuthToken from .yarnrc.yml which is located in my home directory
~/.yarnrc.yml content
npmScopes:
company:
npmAuthToken: NpmToken.token
~/Project/MyProject/.yarnrc.yml con...
Less asked 9/11, 2021 at 15:28
2
current yarn version is yarn 3.0.0.
Tried changing to yarn 2.0.0 using yarn set version 2.0.0-rc.30.
Even after that yarn version still remains at yarn 3.0.0.
Other alternatives I tried:
npm uninst...
Horticulture asked 19/8, 2021 at 7:13
1
Solved
At my workplace we were trying to get Vite working with Yarn Workspaces (in yarn v2).
We wanted to create a test environment where we consumed one of the packages we were publishing from the same r...
Pd asked 14/2, 2023 at 17:48
3
Solved
when I patch a dependency like this:
package.json:
"dependencies":
"react-native-webview": "patch:[email protected]#scripts/patches/react-native-webview+11.0.3.patc...
Mungovan asked 13/10, 2021 at 20:58
1
Solved
I've been scratching my head non stop trying to setup an ESlint configuration in my monorepo. I'm using Yarn 3.2.4 as the package manager. Here is a GitHub repo containing an example project.. Here...
Kuehnel asked 15/11, 2022 at 13:28
1
Just upgraded from Yarn 1 to Yarn 3.
In my package.json of my "Project 1" I have a dependencies to my published package
dependencies: {
...
"@my-package/name": "3.4"...
Stalk asked 7/11, 2021 at 23:58
0
I activated yarn by following yarn official docs (https://yarnpkg.com/getting-started/install)
I created an expo app with yarn by following react native official docs (https://reactnative.dev/docs/...
Modular asked 10/9, 2022 at 13:42
2
This article suggests adding configuration to .npmrc in your project to associate a scope with a private registry to reduce the risk of a npm substitution attack (where someone might deliberately p...
Frowsy asked 2/8, 2021 at 10:56
3
I'm playing around with Yarn 2, and I want to do something like this.
I have a monorepo of the structure:
/
packages/
shared-ts/
package.json
src/
lib*/
app-ts/
package.json
src/
lib*/
...
Unconquerable asked 9/9, 2021 at 0:20
0
I need to get a list of only prod dependencies with yarn 3. Could not find any option in official documentation for listing only prod or devDependencies.
Corresponding npm command is npm list --omi...
Haycock asked 2/8, 2022 at 21:14
1
Solved
When trying to build the app with Vite I'm seeing an error. If I understand it correctly there seems to be an issue with Yarn PnP resolving dependencies (no more node_modules), and Vite does not se...
Gasperoni asked 6/7, 2022 at 21:0
2
After upgrading to Yarn 3.0 with Yarn Plug'n'Play (throw out node_modules), I started having issues with filename resolution when starting Node.
After successfully starting server.js it tries to re...
Mainstay asked 30/10, 2021 at 17:38
1
Working on a yarn2 powered monorepo with two workspaces common and app. I've declared typescript and react-scripts as devDependencies in root's package.json ; and declared typescript and react-scri...
Meuser asked 13/7, 2022 at 14:0
1
I recently upgraded to Yarn2 and added the following to my .gitignore
.yarn/*
!.yarn/cache
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
I still use nodeLinker: node-modules, however ...
Tripody asked 8/11, 2021 at 14:56
2
Solved
when i run yarn on my react app that uses firebase, i will get several warnings like...
@firebase/auth@npm:0.14.5 [c52f6] doesn't provide @firebase/[email protected] requested by @firebase/au...
Chromomere asked 20/5, 2020 at 8:23
1
Solved
I've been using yarn 1.x for a while, installed with npm. Today, I wanted to use a plugin, which, after some research propted me to install something like yarn 3.x. I had no idea that there are oth...
Phago asked 27/3, 2022 at 8:40
3
I'd like to use the node --debug-brk feature described in a previous answer and the jest docs to debug in npm/yarn 1 based projects, but node_modules/ is not present in Yarn 2 / PnP (Plug n Play) b...
Ovenware asked 13/3, 2020 at 14:41
4
Solved
In the next version of yarn ("berry") the manual states that one should just commit the directory created called .yarn, but if you use the multi-version setup for yarn, this directory con...
Crissman asked 19/7, 2020 at 19:12
0
I have to run a script (from my package.json file) before I run yarn install. The script sets up the configuration for a private package. In my .yarnrc.yml, I have nodeLinker: node-modules (and I w...
Eventuality asked 8/3, 2022 at 8:57
2
I'm migrating a VueJS application from "classic" Yarn 1.x to Yarn 2. Following the install documentation is straightforward and works without problems.
The tricky part comes when packagin...
Guffaw asked 27/8, 2021 at 10:29
1
Solved
Why did Yarn not just call Yarn 2 Yarn 3 instead of calling it Yarn 2?
yarn --version
Output:
3.0.1
Or even call it berry? I don't understand the naming conventions.
Alvie asked 1/9, 2021 at 19:52
1 Next >
© 2022 - 2024 — McMap. All rights reserved.