Comments (3)
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.
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.
Yep, same issue with the version of rxjs being outdated in the @capacitor/angular package.json
from capacitor-angular-toolkit.
Related Issues (10)
- Angular/cli builder
- Support for Capacitor 3 and/or Angular 11? HOT 3
- @capacitor/[email protected] uses outdated AngularJS 8 dependencies, which break the build for AngularJS 12. HOT 4
- bug: `Promise resolver undefined is not a function` on ng add HOT 1
- Angular 13 support? HOT 2
- spawn npx ENOENT HOT 6
- Suport Capacitor 4 and Angular 13 or 14
- can not "ng add @capacitor/angular" in multi-project
- Capacitor could not find the web assets directory HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capacitor-angular-toolkit.