Questions tagged [peer-dependencies]

99 questions
0
votes
0 answers

Allow multiple unknown different packages as peerDependency

I'm currently trying to add a peerDependency to my project which can be overriden by multiple different packages. Let's say I have a package: "@namespace/icons" which is one of my peerDependencies "peerDependencies": { "@namespace/icons":…
0
votes
1 answer

What should I do with peer dependencies of dependencies when I develop a library?

Here the situation : I work on a library that has dependencies which themselves have peer-dependencies. When doing a pnpm install, of course I have an error because of unresolved peer-dependencies. Also, the library does not use these…
hl037_
  • 3,520
  • 1
  • 27
  • 58
0
votes
0 answers

How can i fix this peer dependency issue ? i have attached my error and the dependency versions here

i want to fix this issue without using --force ,--legacy-peer-deps commands . since i am new to dependency update can anyone explain this concept and give me a solution to update this versions. i got this error when i am trying to install prettier…
V2rson
  • 137
  • 1
  • 10
0
votes
1 answer

Do without dependencies in the main project if it comes in as a peer dependency?

In our project we have a node app (=A) that integrates a library (=B) that we use. Both in the host (A) and in the lib (B) we use a library from third parties (lets say super-lib@1.0.0 =C), so also in the same version. So A's package.json looks like…
EchtFettigerKeks
  • 1,692
  • 1
  • 18
  • 33
0
votes
1 answer

peer dependency issue in npm install

I am working on a personal site which uses create-react-app and noticed that after installing MUI, every time i npm install, i get peer dependency errors. I think it might have to do with different library versions i have, but im not really sure…
0
votes
1 answer

How to install mui 5 in a project with react@16.12 ? I have added peerDependencies script in my package.json file, Still I am getting waring to add it

I tried some solutions on stackOverFlow and youTube about peerDependencies. One of them was add a peerDependency in package.json file. Following is my package.json file { "name": "app", "version": "0.1.0", "private": true, …
0
votes
1 answer

react@experimental 0.0.0 and peer dependencies

I installed react@experimental which got version 0.0.0-experimental-ee8509801-20230117. Also I have a library with peer dependency react >=0.14 When I run npm i I got following error npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm…
Ilya L.
  • 111
  • 1
  • 4
0
votes
0 answers

How to find all the dependencies that have a peer dependency on a specific library?

How do I find, within my project, all the dependencies that have a peer dependency on a specific library? The use case is that I have to update the version of the library X, and I want to know which library peer-depends on X so that I know in…
marcopiii
  • 793
  • 7
  • 25
0
votes
0 answers

how to install radium in a good way?

I installed radium by using this command npm install --save radium --legacy-peer-deps though it is installed with some vulnerabilities but my app is showing to me on browser without anything ?? I tried to install radium in a simple way like npm…
0
votes
0 answers

Angular, ERESOLVE unable to resolve dependency tree with Nebular migration

I was trying to upgrade Nebular from 8.0.0 to 9.0.3. So I updated the version in the package.json and tried to run npm i. And I received this error: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While…
Asder999
  • 87
  • 1
  • 7
0
votes
0 answers

Why are npm peerDependencies installed by default?

As far as I understood, peerDependencies are used to express the compatibility to another package without actually requiring it. From v7 onwards all peerDependencies are installed by default when running npm install. I was wondering why they are all…
Emely h
  • 33
  • 1
  • 4
0
votes
1 answer

NodeJs configuring peerDependencies in relative path dependency module

I have a lib package that has (following AWS guidance) "devDependencies": { "aws-cdk-lib": "2.1.0" }, "peerDependencies": { "aws-cdk-lib": "^2.1.0" }, It is checked out in parallel with my app package and depended via relative…
shawn
  • 1
  • 1
0
votes
1 answer

React Native: How to resolve peer dependency conflicts when a library doesn't depend on a high enough version?

I'm using react-native@0.64.3 which depends on react@17.0.1, and trying to use this package which depends on react@16.13.1. When I run npm i it gives me this error: npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR!…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
0
votes
1 answer

Is there an equivalent to NPM's "peerDependencies" in Python (preferably in setuptools)?

I am looking for a way to express something that resembles NPM's peerDependencies in setuptools. My Python library is a plugin that should work with another Python library that I don't want to have as a dependency. Instead I'd like my end user to be…
mati.o
  • 1,398
  • 1
  • 13
  • 23
0
votes
1 answer

Failed to instal the app react native android

it turns out that I recently updated react native from version 0.59 to 0.66 and now that I want to run it it doesn't work. I am really desperate, I have been trying to solve for a month, please help, please This is the message I get on the…
Izlia
  • 235
  • 1
  • 2
  • 18