TeamWertarbyte / material-ui-chip-input

A chip input field using Material-UI.
https://mui.wertarbyte.com/#material-ui-chip-input
MIT License
737 stars 208 forks source link

Dependency version mismatch error: Unable to install this module #351

Open venkatesh8 opened 3 years ago

venkatesh8 commented 3 years ago

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: client@0.1.0
npm ERR! Found: react@17.0.2
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/core@4.11.4
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 material-ui-chip-input@2.0.0-beta.2
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 material-ui-chip-input@2.0.0-beta.2
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
7dp commented 3 years ago

Experiencing it too!

porfyriosv commented 3 years ago

any updates ?

ankitjangiid commented 3 years ago

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

kshitijmittal27 commented 3 years ago

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

sokoya commented 3 years ago

Experiencing same issue. Any fix please

rn2web commented 2 years ago

:( dont work anymore?

okkindel commented 2 years ago

+1

abhimanusharma commented 2 years ago

Same issue

yotalha commented 2 years ago

+1

monsund commented 2 years ago

using "--force" helped me while installing.

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

iilhamriz commented 2 years ago

using "--force" helped me while installing.

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

its work for me thanks

viclafouch commented 2 years ago

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