Please update the peer dependencies to the latest package , getting the legacy peer dependency error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @nozbe/with-observables@1.4.1
npm ERR! Found: @types/react@18.0.28
npm ERR! node_modules/@types/react
npm ERR! @types/react@"*" from @types/hoist-non-react-statics@3.3.1
npm ERR! node_modules/@types/hoist-non-react-statics
npm ERR! peer @types/hoist-non-react-statics@"^3.3.1" from @nozbe/with-observables@1.4.1
npm ERR! node_modules/@nozbe/with-observables
npm ERR! @nozbe/with-observables@"1.4.1" from @nozbe/watermelondb@0.25.5
npm ERR! node_modules/@nozbe/watermelondb
npm ERR! @nozbe/watermelondb@"^0.25.5" from the root project
npm ERR! 1 more (the root project)
npm ERR! @types/hoist-non-react-statics@"^3.3.1" from react-redux@8.0.5
npm ERR! node_modules/react-redux
npm ERR! peerOptional react-redux@"^7.2.1 || ^8.0.2" from @reduxjs/toolkit@1.9.3
npm ERR! node_modules/@reduxjs/toolkit
npm ERR! @reduxjs/toolkit@"^1.9.3" from the root project
npm ERR! 1 more (the root project)
npm ERR! @types/react@"*" from @types/react-native@0.70.11
npm ERR! node_modules/@types/react-native
npm ERR! @types/react-native@"^0.70" from @types/react-native-vector-icons@6.4.13
npm ERR! node_modules/@types/react-native-vector-icons
npm ERR! dev @types/react-native-vector-icons@"^6.4.13" from the root project
npm ERR! 4 more (@types/react-native-vector-icons, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @types/react@"^16.9.23||^17" from @nozbe/with-observables@1.4.1
npm ERR! node_modules/@nozbe/with-observables
npm ERR! @nozbe/with-observables@"1.4.1" from @nozbe/watermelondb@0.25.5
npm ERR! node_modules/@nozbe/watermelondb
npm ERR! @nozbe/watermelondb@"^0.25.5" from the root project
npm ERR! @nozbe/with-observables@"^1.4.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @types/react@17.0.55
npm ERR! node_modules/@types/react
npm ERR! peer @types/react@"^16.9.23||^17" from @nozbe/with-observables@1.4.1
npm ERR! node_modules/@nozbe/with-observables
npm ERR! @nozbe/with-observables@"1.4.1" from @nozbe/watermelondb@0.25.5
npm ERR! node_modules/@nozbe/watermelondb
npm ERR! @nozbe/watermelondb@"^0.25.5" from the root project
npm ERR! @nozbe/with-observables@"^1.4.1" from the root project
Please update the peer dependencies to the latest package , getting the legacy peer dependency error