react-tabulator icon indicating copy to clipboard operation
react-tabulator copied to clipboard

react-tag-autocomplete and react-tabulator have incompatible dependencies for react 17

Open rulrok opened this issue 4 years ago • 3 comments

Title

  • feature: please upgrade react-tag-autocomplete once it implements the support for react 17 https://github.com/i-like-robots/react-tags/issues/236

Environment Details

  • react-tabulator version: 0.15.0
  • OS: linux manjaro
  • Node.js version: 15.0.1

Long Description image

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
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.3" from the root project
npm ERR!     peer @material-ui/core@"^4.0.0" from @material-ui/[email protected]
npm ERR!     node_modules/@material-ui/icons
npm ERR!       @material-ui/icons@"^4.11.2" from the root project
npm ERR!     1 more (@material-ui/lab)
npm ERR!   11 more (react-dom, @material-ui/icons, @material-ui/lab, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.0.0 || ^16.0.0" from [email protected]
npm ERR! node_modules/react-tabulator/node_modules/react-tag-autocomplete
npm ERR!   react-tag-autocomplete@"^5.7.1" from [email protected]
npm ERR!   node_modules/react-tabulator
npm ERR!     react-tabulator@"^0.15.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Workaround Using npm i --legacy-peer-deps works for me

rulrok avatar Jun 09 '21 13:06 rulrok

Please update react-tab-autocomplete dep...

manuFL avatar Oct 07 '21 13:10 manuFL

Wanted to use react-tabulator with react 18.2.0 and get npm warnings

npm WARN ERESOLVE overriding peer dependency                                              
npm WARN While resolving: [email protected]                                   
npm WARN Found: [email protected]                                                              
npm WARN node_modules/react                                                               
npm WARN   react@"18.2.0" from the root project                                           
npm WARN   5 more (next, react-dom, react-tabulator, styled-jsx, use-sync-external-store) 
npm WARN                                                                                  
npm WARN Could not resolve dependency:                                                    
npm WARN peer react@"^15.0.0 || ^16.0.0" from [email protected]               
npm WARN node_modules/react-tabulator/node_modules/react-tag-autocomplete
npm WARN   react-tag-autocomplete@"^5.7.1" from [email protected]
npm WARN   node_modules/react-tabulator
npm WARN  
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react
npm WARN   peer react@"^15.0.0 || ^16.0.0" from [email protected]
npm WARN   node_modules/react-tabulator/node_modules/react-tag-autocomplete
npm WARN     react-tag-autocomplete@"^5.7.1" from [email protected]
npm WARN     node_modules/react-tabulator
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: [email protected]
npm WARN Found: [email protected]
npm WARN node_modules/react-dom
npm WARN   react-dom@"18.2.0" from the root project 
npm WARN   2 more (next, react-tabulator)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react-dom@"^15.0.0 || ^16.0.0" from [email protected]
npm WARN node_modules/react-tabulator/node_modules/react-tag-autocomplete
npm WARN   react-tag-autocomplete@"^5.7.1" from [email protected]
npm WARN   node_modules/react-tabulator
npm WARN
npm WARN Conflicting peer dependency: [email protected]
npm WARN node_modules/react-dom
npm WARN   peer react-dom@"^15.0.0 || ^16.0.0" from [email protected]
npm WARN   node_modules/react-tabulator/node_modules/react-tag-autocomplete
npm WARN     react-tag-autocomplete@"^5.7.1" from [email protected]
npm WARN     node_modules/react-tabulator 

stefaneidelloth avatar Sep 30 '22 15:09 stefaneidelloth

Sadly this is still happening and in fact now it is worse as it disables the ability to build and utilize React hooks, throwing the error below: image Now yes the error may be caused by a few reasons but in this case it is confirmed that it is due to the presence of two copies of React in the app, becuase react-tag-autocomplete uses react@"^15.0.0 || ^16.0.0"

This needs resolution asap.

dtoxvanilla1991 avatar Feb 21 '24 18:02 dtoxvanilla1991