question-mark
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.

Incompatibility with yarn v3

See original GitHub issue

Which @angular/* package(s) are the source of the bug?

Don’t known / other

Is this a regression?

Yes

Description

When I try to use the “ng add” tool in any package I get that error always in yarn v3.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

PS app> ng add apollo-angular
ℹ Using package manager: yarn
✔ Found compatible package version: apollo-angular@2.6.0.
✔ Package information loaded.
 
The package apollo-angular@2.6.0 will be installed and executed.
Would you like to proceed? Yes
Unknown Syntax Error: Command not found; did you mean one of:

  0. yarn add [--json] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev] [-i,--interactive] [--cached] [--mode #0] ...
  1. yarn add [--json] [-E,--exact] [-T,--tilde] [-C,--caret] [-D,--dev] [-P,--peer] [-O,--optional] [--prefer-dev] [-i,--interactive] [--cached] [--mode #0] ...

While running add apollo-angular@2.6.0 --silent
✖ Package install failed, see above.

Please provide the environment you discovered this bug in

Angular CLI: 12.2.7
Node: 16.11.0 (Unsupported)
Package Manager: yarn 3.0.2
OS: win32 x64

Angular: 12.2.8
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1202.7
@angular-devkit/build-angular   12.2.7
@angular-devkit/core            12.2.7
@angular-devkit/schematics      12.2.7
@angular/cdk                    12.2.12
@angular/cli                    12.2.7
@angular/flex-layout            12.0.0-beta.35
@angular/localize               12.2.12
@schematics/angular             12.2.7
rxjs                            6.6.7
typescript                      4.3.5

Anything else?

I think it is the same with yarn v2 as the --silent flag no longer exists since yarn v2.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Lonli-Loklicommented, Jun 2, 2022

@alan-agius4 @clydin I’ve just tried to update with Yarn3 to Ng14, got this

PS cv-ui> npx ng update @angular/core@14 @angular/cli@14 --force
The installed Angular CLI version is outdated.
Installing a temporary Angular CLI versioned 14.0.0 to perform the update.
✔ Package successfully installed.
DEPRECATED: The 'defaultProject' workspace option has been deprecated. The project to use will be determined from the current working directory.
Using package manager: yarn
Collecting installed dependencies...
Found 81 dependencies.
Fetching dependency metadata from registry...
                  Package "jest-preset-angular" has an incompatible peer dependency to "@angular-devkit/build-angular" (requires ">=0.1102.19 <14.0.0", would install "14.0.0").
                  Package "@angular-eslint/schematics" has an incompatible peer dependency to "@angular/cli" (requires ">= 13.0.0 < 14.0.0", would install "14.0.0").
    Updating package.json with dependency @angular-devkit/build-angular @ "14.0.0" (was "13.3.2")...
    Updating package.json with dependency @angular/cli @ "14.0.0" (was "13.3.2")...
    Updating package.json with dependency @angular/compiler-cli @ "14.0.0" (was "13.3.10")...
    Updating package.json with dependency @angular/language-service @ "14.0.0" (was "13.3.10")...
    Updating package.json with dependency typescript @ "4.7.2" (was "4.5.2")...
    Updating package.json with dependency @angular/animations @ "14.0.0" (was "13.3.10")...
    Updating package.json with dependency @angular/common @ "14.0.0" (was "13.3.10")...
    Updating package.json with dependency @angular/compiler @ "14.0.0" (was "13.3.10")...
    Updating package.json with dependency @angular/core @ "14.0.0" (was "13.3.10")...
    Updating package.json with dependency @angular/forms @ "14.0.0" (was "13.3.10")...
    Updating package.json with dependency @angular/platform-browser @ "14.0.0" (was "13.3.10")...
    Updating package.json with dependency @angular/platform-browser-dynamic @ "14.0.0" (was "13.3.10")...
    Updating package.json with dependency @angular/router @ "14.0.0" (was "13.3.10")...
    Updating package.json with dependency @angular/service-worker @ "14.0.0" (was "13.3.10")...
UPDATE package.json (4422 bytes)
✖ Packages installation failed, see above.

And that’s all 😃 I think it’s related to Yaarn3, mb it make sense to reopen this story?

0reactions
angular-automatic-lock-bot[bot]commented, Jul 3, 2022

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Yarn 3 compatibility · Issue #8054 · backstage ... - GitHub
I've tried a quick hack of version bump for yarn 3 lock file and that worked but then hit issues with bundler when...
Read more >
Migration | Yarn - Package Manager
A step-by-step and in-depth migration guide from Yarn 1 (Classic) to Yarn 2 (Berry). ... Any major release has its breaking changes, and...
Read more >
Yarn 3.0 Performances, ESBuild, Better Patches
We now use ESBuild to generate the Yarn bundles and as such worked to ensure good compatibility with Plug'n'Play installs.
Read more >
node version incompatible, but wrong version is found
I am trying to use yarn install and do get an error that engine "node" is incompatible because version ">=10.14" is required.
Read more >
JavaScript package managers compared: npm, Yarn, or pnpm?
To address the incompatibility of PnP, the team offered some ways to easily ... The example shows how to activate it in Yarn...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found