justinmahar / react-social-media-embed

📰 Easily embed social media posts from Facebook, Instagram, LinkedIn, Pinterest, TikTok, X (Twitter), and YouTube in React.
https://justinmahar.github.io/react-social-media-embed/
MIT License
215 stars 30 forks source link

Support for React 18? #48

Closed tonywei92 closed 9 months ago

tonywei92 commented 1 year ago
$ npm i react-instagram-embed
npm ERR! While resolving: react-instagram-embed@3.0.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR!   peer react@">=16.8.0" from @dnd-kit/accessibility@3.0.1
npm ERR!   node_modules/@dnd-kit/accessibility
npm ERR!     @dnd-kit/accessibility@"^3.0.0" from @dnd-kit/core@6.0.8
npm ERR!     node_modules/@dnd-kit/core
npm ERR!       peer @dnd-kit/core@"^6.0.6" from @dnd-kit/modifiers@6.0.1
npm ERR!       node_modules/@dnd-kit/modifiers
npm ERR!         @dnd-kit/modifiers@"^6.0.0" from sanity@3.12.2
npm ERR!         node_modules/sanity
npm ERR!       2 more (@dnd-kit/sortable, sanity)
npm ERR!   peer react@">=16.8.0" from @dnd-kit/core@6.0.8
npm ERR!   node_modules/@dnd-kit/core
npm ERR!     peer @dnd-kit/core@"^6.0.6" from @dnd-kit/modifiers@6.0.1
npm ERR!     node_modules/@dnd-kit/modifiers
npm ERR!       @dnd-kit/modifiers@"^6.0.0" from sanity@3.12.2
npm ERR!       node_modules/sanity
npm ERR!         sanity@"^3.12.2" from the root project
npm ERR!     peer @dnd-kit/core@"^6.0.7" from @dnd-kit/sortable@7.0.2
npm ERR!     node_modules/@dnd-kit/sortable
npm ERR!       @dnd-kit/sortable@"^7.0.1" from sanity@3.12.2
npm ERR!       node_modules/sanity
npm ERR!         sanity@"^3.12.2" from the root project
npm ERR!     1 more (sanity)
npm ERR!   31 more (@dnd-kit/modifiers, @dnd-kit/sortable, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^17.0.0 || ^16.0.0 || ^15.0.0 || ~0.14.0" from react-instagram-embed@3.0.0
npm ERR! node_modules/react-instagram-embed
npm ERR!   react-instagram-embed@"^3.0.0" 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.0 || ^16.0.0 || ^15.0.0 || ~0.14.0" from react-instagram-embed@3.0.0
npm ERR!   node_modules/react-instagram-embed
npm ERR!     react-instagram-embed@"^3.0.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.
justinmahar commented 9 months ago

Hey @tonywei92! Looks like you've posted this in the wrong project? You posted errors for react-instagram-embed, while this project is react-social-media-embed and supports React 18.

justinmahar commented 9 months ago

Closing for now. Will reopen if need be.