Code Monkey home page Code Monkey logo

Comments (3)

AUK4GIT avatar AUK4GIT commented on May 18, 2024 2

I am able to proceed after setting the flag legacy-peer-deps to true
npm config set legacy-peer-deps true
ng add @capacitor/angular

from capacitor-angular-toolkit.

AUK4GIT avatar AUK4GIT commented on May 18, 2024 1

Hi, Even I am unable to add the package to the latest angular project

The package's peer dependencies([email protected], [email protected] version) versions are not satisfying with the latest angular dependencies version([email protected], [email protected] version) and hence there is a conflict.

We would like to work with the latest rxjs and typescript versions instead of downgrading.

adding the package with the flags --force, or --legacy-peer-deps did not help

`Angular CLI: 12.2.12
  Node: 16.10.0 (Unsupported)
  Package Manager: npm 7.24.0
  OS: darwin x64

  Angular:
  ...

  Package                      Version
  ------------------------------------------------------
  @angular-devkit/architect    0.1202.12 (cli-only)
  @angular-devkit/core         12.2.12 (cli-only)
  @angular-devkit/schematics   12.2.12 (cli-only)
  @schematics/angular          12.2.12 (cli-only)`



` ℹ Using package manager: npm
   ✖ Unable to find compatible package.  Using 'latest'.
   ✖ Package has unmet peer dependencies. Adding the package may not succeed.

   The package @capacitor/angular will be installed and executed.
   Would you like to proceed? Yes
   npm ERR! code ERESOLVE
   npm ERR! ERESOLVE unable to resolve dependency tree
   npm ERR! 
   npm ERR! While resolving: [email protected]
   npm ERR! Found: [email protected]
   npm ERR! node_modules/typescript
   npm ERR!   dev typescript@"~4.3.5" from the root project
   npm ERR! 
   npm ERR! Could not resolve dependency:
   npm ERR! peer typescript@"~3.4.3" from @capacitor/[email protected]
   npm ERR! node_modules/@capacitor/angular
   npm ERR!   @capacitor/angular@"*" from the root project
   npm ERR! 
   npm ERR! Fix the upstream dependency conflict, or retry
   npm ERR! this command with --force, or --legacy-peer-deps
   npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
   npm ERR! 
   npm ERR! See /Users/etguser/.npm/eresolve-report.txt for a full report.

   npm ERR! A complete log of this run can be found in:
   npm ERR!     /Users/etguser/.npm/_logs/2021-11-01T04_31_48_575Z-debug.log
   ✖ Package install failed, see above.`

from capacitor-angular-toolkit.

sjregan avatar sjregan commented on May 18, 2024

Yep, same issue with the version of rxjs being outdated in the @capacitor/angular package.json

from capacitor-angular-toolkit.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.