Questions tagged [peer-dependencies]

99 questions
1
vote
1 answer

Conflicting peer dependancy: eslint-plugin-vue@7.20.0

I am getting a conflicting peer dependency: eslint-plugin-vue@7.20.0 when trying to build/deploy my Vue CLI application using Heroku: npm ERR! Could not resolve dependency: npm ERR! peer eslint-plugin-vue@"^7.0.0" from…
1
vote
0 answers

npm peer dependencies not being enforced

I am trying to understand peer dependencies in npm, and could not understand the behavior below. I have the following versions of node and npm : $ npm -v 8.15.0 $ node -v v16.17.0 The following directory structure: peer-dep-test$ tree -I…
BX21
  • 391
  • 6
  • 19
1
vote
1 answer

Npm ci : why no peer dependencies error on vscode terminal

I have a react repo that in a github action , while doing "npm ci", gives a "Conflicting peer dependency" problem ( using npm 8.5.5 , node 16.14-alpine ). And that's fine because npm >=7 blocks installations of peer dependencies if it finds any…
Papidev
  • 31
  • 4
1
vote
1 answer

How to solve docker-compose buld error while installing saleor?

Runnung docker-compose build, I get this error. I have installed pnpm using npm install -g pnpm but still the same error occurs. => ERROR [saleor-platform_react-storefront 8/9] RUN pnpm install =>…
1
vote
0 answers

ERESOLVE unable to resolve dependency tree Angular core @angular/material-moment-adapter

I try to install @angular/material-moment-adapter to get a fix on the Date Picker from Angular Material. The project i am working on are using version 10.X.X of the Angular packages (core, compiler, common, etc..). To choose the right version of…
Jeremy
  • 103
  • 9
1
vote
1 answer

How to determine if a deps should be put into 'devDependencies' or 'peerDependencies'

When you have a dependency that is going to install into current project or a NPM package, it is easy to determine if it is a 'deps' or a 'devDeps', but how to determine if it is a 'deps' or a 'peerDeps'?
Wayne Mao
  • 419
  • 5
  • 9
1
vote
1 answer

Is it possible to use different declaration files for different versions of TypeScript?

I have some type definitions that I want to turn into an npm package because I use them in multiple, unrelated projects. (I would likely call it @dfoverdx/ts-magic.) Some of these projects are using 3.x, and some are using >=4.2, where leading and…
dx_over_dt
  • 13,240
  • 17
  • 54
  • 102
1
vote
1 answer

Webpack external OPTIONAL modules

Im working on a library that requires some optional peer dependencies. "peerDependencies": { "react-dnd": ">=14.0.0", "react-dnd-html5-backend": ">=14.0.0", }, "peerDependenciesMeta": { "react-dnd": { "optional": true }, …
elios264
  • 384
  • 4
  • 19
1
vote
0 answers

Question about react-redux npm package 'peerDependencies'

This is the package.json "peerDependencies": { "react": "^16.8.3 || ^17", "redux": "^2.0.0 || ^3.0.0 || ^4.0.0-0" }, "devDependencies": { "react": "^16.14.0", "redux": "^4.0.5", } Generally if the package (usually the src…
Wayne Mao
  • 419
  • 5
  • 9
1
vote
1 answer

Forcing npm install failures on mismatched peerDependencies

Does anyone have a technique for getting npm install to completely fail when peerDependency version mismatches are present? We frequently hit issues where peerDependency warnings go unheeded by developers, and semver mismatches cause breakage when…
Jacob
  • 77,566
  • 24
  • 149
  • 228
1
vote
1 answer

How to output NPM packages with peer dependencies that allow for selective imports?

I am publishing a module that uses a few peer dependencies: In my package.json file i declare peerDependencies: ... "peerDependencies": { "react": ">=16", "react-dom": ">=16", "@material-ui/core": ">=4", "@material-ui/icons":…
Zach Smith
  • 8,458
  • 13
  • 59
  • 133
1
vote
1 answer

npm conflicting peer dependency requirements installing PrimeNG into an Angular app

I install primeng and get a peer dependency warning: >npm install primeng --save npm WARN primeng@9.0.2 requires a peer of zone.js@^0.10.2 but none is installed. You must install peer dependencies yourself. So I dutifully install zone.js@^0.10.2…
blogofsongs
  • 2,527
  • 4
  • 21
  • 26
1
vote
0 answers

devDependencies and peerDependencies are the same?

Pardon my ignorance, if I am developing a library, should (some of) my peerDependencies be duplicated in my devDependencies? I'm thinking yes, right? Example: "peerDependencies": { "@babel/runtime": "7.6.0", <- needed for consuming the…
Adam Jenkins
  • 51,445
  • 11
  • 72
  • 100
1
vote
0 answers

importing opencv4nodejs to React App.js throws TypeError

I'm trying to use opencv4nodejs module in my React app. Ubuntu 18.04.3 LTS with 12 CPUs I had a seemingly successful auto build when I installed in my app directory npm install --save opencv4nodejs The opencv modules was indeed added to my…
NicoWheat
  • 2,157
  • 2
  • 26
  • 34
1
vote
1 answer

How to build libraries with two-way peer-dependencies in typescript?

I have two libraries, one which makes requests and another which does logging. Both libraries require configuration from the client, which will always be using both of them. The request library makes calls to the logging library throughout, and has…
Ben Chislett
  • 437
  • 6
  • 11