material-ui-chip-input icon indicating copy to clipboard operation
material-ui-chip-input copied to clipboard

Dependency version mismatch error: Unable to install this module

Open venkatesh8 opened this issue 3 years ago • 12 comments

my Package.json

{
  "name": "client",
  "version": "0.1.0",
  "private": true,
  "proxy": "http://localhost:5000",
  "dependencies": {
    "@material-ui/core": "^4.11.4",
    "@material-ui/icons": "^4.11.2",
    "@material-ui/lab": "^4.0.0-alpha.58",
    "@testing-library/jest-dom": "^5.12.0",
    "@testing-library/react": "^11.2.7",
    "@testing-library/user-event": "^12.8.3",
    "axios": "^0.21.1",
    "jwt-decode": "^3.1.2",
    "moment": "^2.29.1",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-file-base64": "^1.0.3",
    "react-google-login": "^5.2.2",
    "react-redux": "^7.2.4",
    "react-router-dom": "^5.2.0",
    "react-scripts": "4.0.3",
    "redux": "^4.1.0",
    "redux-thunk": "^2.3.0",
    "web-vitals": "^1.1.2"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

Error:

**npm i --save material-ui-chip-input@next**
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/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR!   peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm ERR!   node_modules/@material-ui/core
npm ERR!     @material-ui/core@"^4.11.4" from the root project
npm ERR!     peer @material-ui/core@"^4.0.0" from [email protected]
npm ERR!     node_modules/material-ui-chip-input
npm ERR!       material-ui-chip-input@"2.0.0-beta.2" from the root project
npm ERR!   1 more (react-dom)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.6" from [email protected]
npm ERR! node_modules/material-ui-chip-input
npm ERR!   material-ui-chip-input@"2.0.0-beta.2" from the root project
npm ERR! 
node -v
v14.15.4
npm -v
7.5.3

venkatesh8 avatar May 25 '21 07:05 venkatesh8

Experiencing it too!

7dp avatar Jun 22 '21 14:06 7dp

any updates ?

porfyriosv avatar Jul 08 '21 08:07 porfyriosv

Use --force to install, for the most part, it'll work. It is not a reliable solution but you can make it work.

ankitjangiid avatar Jul 30 '21 14:07 ankitjangiid

Use --force to install, for the most part, it'll work. It is not a reliable solution but you can make it work.

its not working

kshitijmittal27 avatar Aug 10 '21 12:08 kshitijmittal27

Experiencing same issue. Any fix please

sokoya avatar Oct 13 '21 17:10 sokoya

:( dont work anymore?

rn2web avatar Nov 05 '21 12:11 rn2web

+1

okkindel avatar Nov 12 '21 08:11 okkindel

Same issue

abhimanusharma avatar Dec 23 '21 17:12 abhimanusharma

+1

yotalha avatar Jan 02 '22 13:01 yotalha

using "--force" helped me while installing.

npm i --save material-ui-chip-input@next --force

monsund avatar Jan 04 '22 16:01 monsund

using "--force" helped me while installing.

npm i --save material-ui-chip-input@next --force

its work for me thanks

iilhamriz avatar Mar 22 '22 01:03 iilhamriz

Hello ! This package (https://viclafouch.github.io/mui-chips-input/) supports both React 17 / 18 and MUI V5

viclafouch avatar Sep 04 '22 09:09 viclafouch