ericz1803 / react-google-calendar

React Calendar Component that displays data from Google Calendar
https://ericz1803.github.io/react-test-calendar
MIT License
188 stars 64 forks source link

Does not work with react 17 #30

Closed matthewwen closed 1 year ago

matthewwen commented 3 years ago

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: purdue-ecea-website@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" from @emotion/react@11.4.1 npm ERR! node_modules/@emotion/react npm ERR! @emotion/react@"^11.4.1" from the root project npm ERR! peer @emotion/react@"^11.1.1" from @ericz1803/react-google-calendar@4.2.1 npm ERR! node_modules/@ericz1803/react-google-calendar npm ERR! @ericz1803/react-google-calendar@"" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.14.0" from @ericz1803/react-google-calendar@4.2.1 npm ERR! node_modules/@ericz1803/react-google-calendar npm ERR! @ericz1803/react-google-calendar@"" 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!

shahdivyank commented 2 years ago

One way to resolve this is by using yarn instead:

yarn add @ericz1803/react-google-calendar

It worked out for me.

eleventhaus commented 2 years ago

add the either --force, or --legacy-peer-deps flag when installing