sanity-io / sanity-plugin-mux-input

An input component that integrates Sanity Studio with MUX.com video encoding/hosting service.
https://mux.com
MIT License
45 stars 55 forks source link

styled-components need to be updated #351

Closed MohammedAlasaad closed 2 months ago

MohammedAlasaad commented 3 months ago

Hi, I think we getting some kind of conflict. We need to update the packages for sanity-plugin-mux-input to fix styled-components issue.

npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: sanity-plugin-mux-input@2.2.4
npm ERR! Found: styled-components@6.1.8
npm ERR! node_modules/styled-components
npm ERR!   styled-components@"^6.1.8" from the root project
npm ERR!   peer styled-components@"^5.0 || ^6.0" from @sanity/document-internationalization@2.1.0
npm ERR!   node_modules/@sanity/document-internationalization
npm ERR!     @sanity/document-internationalization@"^2.1.0" from the root project
npm ERR!   10 more (@sanity/language-filter, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer styled-components@"^5.2" from sanity-plugin-mux-input@2.2.4
npm ERR! node_modules/sanity-plugin-mux-input
npm ERR!   sanity-plugin-mux-input@"^2.2.4" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: styled-components@5.3.11
npm ERR! node_modules/styled-components
npm ERR!   peer styled-components@"^5.2" from sanity-plugin-mux-input@2.2.4
npm ERR!   node_modules/sanity-plugin-mux-input
npm ERR!     sanity-plugin-mux-input@"^2.2.4" 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.
stipsan commented 2 months ago

Resolved in https://github.com/sanity-io/sanity-plugin-mux-input/releases/tag/v2.3.0