Cringe-Studio / strapi-auto-uuid

Custom field plugin to automatically add manage uuid for your content types, inspired by @strapi-plugin-field-uuid
MIT License
12 stars 22 forks source link

Upgrade React peerDependencies #6

Closed Cretezy closed 1 year ago

Cretezy commented 1 year ago

Strapi 4.11 uses React 18.

 npm install strapi-auto-uuid 
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @csnades/cms@0.1.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   peer react@"^17.0.0 || ^18.0.0" from @strapi/plugin-graphql@4.11.0
npm ERR!   node_modules/@strapi/plugin-graphql
npm ERR!     @strapi/plugin-graphql@"^4.11.0" from the root project
npm ERR!   peer react@"^18.2.0" from react-dom@18.2.0
npm ERR!   node_modules/react-dom
npm ERR!     peer react-dom@"^17.0.0 || ^18.0.0" from @strapi/plugin-graphql@4.11.0
npm ERR!     node_modules/@strapi/plugin-graphql
npm ERR!       @strapi/plugin-graphql@"^4.11.0" from the root project
npm ERR!     peer react-dom@">= 16.8.0" from styled-components@5.3.3
npm ERR!     node_modules/styled-components
npm ERR!       peer styled-components@"5.3.3" from @strapi/plugin-graphql@4.11.0
npm ERR!       node_modules/@strapi/plugin-graphql
npm ERR!         @strapi/plugin-graphql@"^4.11.0" from the root project
npm ERR!       2 more (@strapi/plugin-i18n, @strapi/plugin-users-permissions)
npm ERR!     2 more (@strapi/plugin-i18n, @strapi/plugin-users-permissions)
npm ERR!   4 more (react-router-dom, styled-components, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! strapi-auto-uuid@"^0.0.7" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: react@17.0.2
npm ERR! node_modules/react
npm ERR!   peer react@"^17.0.2" from strapi-auto-uuid@0.0.7
npm ERR!   node_modules/strapi-auto-uuid
npm ERR!     strapi-auto-uuid@"^0.0.7" 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.
npm ERR!  npm install strapi-auto-uuid 
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @csnades/cms@0.1.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   peer react@"^17.0.0 || ^18.0.0" from @strapi/plugin-graphql@4.11.0
npm ERR!   node_modules/@strapi/plugin-graphql
npm ERR!     @strapi/plugin-graphql@"^4.11.0" from the root project
npm ERR!   peer react@"^18.2.0" from react-dom@18.2.0
npm ERR!   node_modules/react-dom
npm ERR!     peer react-dom@"^17.0.0 || ^18.0.0" from @strapi/plugin-graphql@4.11.0
npm ERR!     node_modules/@strapi/plugin-graphql
npm ERR!       @strapi/plugin-graphql@"^4.11.0" from the root project
npm ERR!     peer react-dom@">= 16.8.0" from styled-components@5.3.3
npm ERR!     node_modules/styled-components
npm ERR!       peer styled-components@"5.3.3" from @strapi/plugin-graphql@4.11.0
npm ERR!       node_modules/@strapi/plugin-graphql
npm ERR!         @strapi/plugin-graphql@"^4.11.0" from the root project
npm ERR!       2 more (@strapi/plugin-i18n, @strapi/plugin-users-permissions)
npm ERR!     2 more (@strapi/plugin-i18n, @strapi/plugin-users-permissions)
npm ERR!   4 more (react-router-dom, styled-components, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! strapi-auto-uuid@"^0.0.7" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: react@17.0.2
npm ERR! node_modules/react
npm ERR!   peer react@"^17.0.2" from strapi-auto-uuid@0.0.7
npm ERR!   node_modules/strapi-auto-uuid
npm ERR!     strapi-auto-uuid@"^0.0.7" 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.