Questions tagged [yarn-v3]

33 questions
0
votes
0 answers

Installed dependencies are not recognized (Yarn v3.5.0)

I installed dependencies using Yarn 3.5.0 and... Cannot find module Could not resolve when i changed package manager to pnpm or npm all it works I tried update, remove and install again all dependencies using yarn, but it's not worked
StaSyn
  • 1
  • 3
0
votes
0 answers

command not found: webpack in yarn Berry monorepo

Working on a yarn 3.6.x monorepo with multiple workspaces spread over 2 different folders i do get an error when invoking scripts in the workspaces. I do not have this issue locally, also not when checking the repository out from scratch. Though…
pcvnes
  • 927
  • 2
  • 15
  • 41
0
votes
0 answers

Yarn - Show dependency chain for warnings when running yarn install on version 2/3

Is there anyway to get more information about the warnings in the "resolution step" when running yarn install? Either during the install process or afterwards. The main info I want to get is the dependency chain for each warning. Version 1 would…
Kyle
  • 685
  • 7
  • 14
0
votes
0 answers

Can't install with yarn

Why I cannot install packages with the modern yarn? Windows 10 Node.js LTS 18.16.0 Yarn v2.x or v3.x (it works with the old deprecated version v1.22.19) I installed node and yarn the recommended way (LINK). I tried on a fresh virtual machine…
milpataki
  • 471
  • 4
  • 4
0
votes
1 answer

Yarn project is using yarn3x and Plug 'N Play but doesn't work without node_modules directory

I'm trying to create a new NestJS project with Yarn as the package manager. After installing NestJS with npm globally (npm install -g @nestjs/cli), I ran npx nest new [package name] --strict, then selected Yarn as the package manager in the…
Nathan Tew
  • 432
  • 1
  • 5
  • 21
0
votes
1 answer

Vite: how can I check the typescript setup of a React app if typechecking starts failing for the whole project

I have a React app created with Vite and using Typescript, but for some reason it seems typechecking broke down and I can't find a state in the previous commits where it would still work. To give an example, I get errors such as: Cannot find module…
maja
  • 697
  • 5
  • 18
0
votes
0 answers

Yarn 3 Workspace resolutions

I'm building a component library in React using Yarn v3 Workspaces to manage my mono-repo. One of the workspaces within the mono-repo is for a Storybook application and I need to pin the version of one of its transitive dependencies due to a…
0
votes
0 answers

Yarn 3.3.1 : how to upgrade all instances of a package?

Hi everybody I don't really now if these are called "instances" of a package...anyway, my problem is this: if I run yarn npm audit it shows me a problem with the package trim-newlines and suggests me to upgrade it to a version >=3.0.1 After the…
Deffo
  • 191
  • 1
  • 8
  • 21
0
votes
1 answer

yarn pnp RangeError: Maximum call stack size exceeded

I am creating a yarn Plug'n'Play workspace. But when I tried to use the yarn dlx @yarnpkg/sdks vscode it gave me a "RangeError: Maximum call stack size exceeded" error. But I manually created the file and the sdks folder and resolved the issue. But…
0
votes
0 answers

Yarn v3 migration error: cannot find script grpc_node_tools_protoc

We are trying to migrate Hyperledger Cactus from yarn v1 to yarn v3 (3.3.0). During migration using these steps here, we encountered issues. Node version used: 16.14.2 issues encountered: see screenshot Ways to replicate issue: After building cactus…
zondervan
  • 1
  • 1
0
votes
0 answers

Can't import OpenZeppelin contracts when using Yarn package manager and Truffle

I'm writing my first smart contract and I'm trying a few new things at once. One of which is using Yarn 3 (which apparently works very different from the older versions). When running yarn truffle compile, I get this error: Using network…
cilphex
  • 6,006
  • 6
  • 34
  • 44
0
votes
0 answers

In yarn pnp and workspaces... How can I resolve the path to package files in the .yarn/cache/ directory?

I used to run this command in yarn version 1 on the command line... yarn --cwd packages/mypackage/ node --trace-deprecation node_modules/webpack/bin/webpack.js --env env=dev ...so now what would be the equivalent to the previous command when using…
god_is_love
  • 571
  • 5
  • 18
0
votes
0 answers

Yarn 3 typescript plugin not pulling in @types for package.json dependencies

I have a react native Typescript application which i have upgraded from yarn 1 to yarn 3. I have followed the migration document on the official docs and have two issues i'm unsure on what i should do. As its react native im not able to use the Pnp…
FeedMeData
  • 71
  • 4
0
votes
0 answers

How to configure VS Code Debugger with Node, TypeScript, Yarn Berry Workspaces, PnP and Zero-Installs?

I have some node application in a monorepo setup with yarn workspaces. The applications are using TypeScript and my start in package.json inside each application script typically just looks like this: ts-node -r dotenv/config ./src/index.ts Now I'd…
Dac0d3r
  • 2,176
  • 6
  • 40
  • 76
0
votes
1 answer

I can't add a custom private packages from git with yarn 3 but I can add with yarn 1.22.18

I create a custom private repo as library from git. I want to use that library into another project but and I try to add that library with this syntax: yarn add "@git+" but I use yarn 3 and its bring the project external libraries without building.…