Questions tagged [peer-dependencies]

99 questions
0
votes
1 answer

Multiple Peer React versions npm

I am working on a react-app. At the moment I have installed react@17.0.0 and I have some plugins which need this version of react. Now I wanted also to use react-canvas, which needs react@15.0.0. The Warning after installing react-canvas is the…
Minim
  • 3
  • 1
0
votes
1 answer

npm peer dependencies for react-helmet-async package gives error using React 17

For a React 17 project, bootstrapped with create-react-app, I want to use the react-helmet-async package. This project has the following peer dependencies, located in the package.json file: "peerDependencies": { "react": "^16.6.0", …
Bas
  • 2,106
  • 5
  • 21
  • 59
0
votes
1 answer

Interdependent NPM packages: peerDependency not resolving against "host" package

I disovered the hard way today that I need to split a library into two packages; lets call them CoreLib and TestCoreLib. The CoreLib package is a library, the TestCoreLib library is the bundle of utilities and actors needs to setup the test…
Emmington
  • 53
  • 1
  • 9
0
votes
1 answer

React peer dependencies and package's react version restriction

My react project depends on "react": "^16.8.4". It also uses react-circular-color@1.3.0 However, while building, I get this warning. react-circular-color@1.3.0 requires a peer of react@^0.14.0 || ^15.0.0 but none is installed. Does this mean, my…
prem911
  • 266
  • 3
  • 16
-1
votes
0 answers

npm update ERR! code RESOLVE could not resolve npm ERR! npm ERR! While resolving: react-scripts@4.0.1 npm

When I run npm update I get the following erros in my terminal; npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: react-scripts@4.0.1 npm ERR! Found: typescript@4.9.5 npm ERR! node_modules/typescript npm…
-1
votes
1 answer

npm - need to automatically install peer dependencies in parent project without ignoring them

I have a react application say project-A which I need to publish as a npm package and this project have several dependencies such as material-ui, dompurify, recharts etc. Now in other application say Project-B I need to install Project-A as…
neha singh
  • 131
  • 1
  • 1
  • 7
-1
votes
1 answer

How to disable automatic installation of peer dependencies in NPM?

With NPM 7, peer dependencies are now installed automatically. How can I disabled this behavior? Context: I have an Angular NX Monorepo and I want to install only one copy of Angular at the root, also I want to install library inside "my-app". That…
coltrane
  • 39
  • 5
-1
votes
1 answer

What is the best practice to resolving this peer dependencies issue?

I've node.js and pnpm installed, with pnpm config set auto-install-peers true If I type : pnpx create-next-app //(named my-app) cd my-app pnpm add @rainbow-me/rainbowkit What is the right way to fix this ? If best practice needs to remove my…
Fabien
  • 97
  • 8
-1
votes
1 answer

How to run a react project when react is added as peer dependency

I'm trying to run a repo from Github locally. The folder structure for react is somewhat different what what I usually see in a react project(I'm new to react). the folder structure is like -index.js -css folder -jsx folder - components -jsx…
Rohan Shenoy
  • 805
  • 10
  • 23
1 2 3 4 5 6
7