When I ran npm install react-native-smtp-mailer --save, I got the following error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: MyApp@0.0.1
npm ERR! Found: react-native@0.64.2
npm ERR! node_modules/react-native
npm ERR! react-native@"0.64.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react-native@"^0.41.2" from react-native-smtp-mailer@1.2.4
npm ERR! node_modules/react-native-smtp-mailer
npm ERR! react-native-smtp-mailer@"*" 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 ERR! See /Users/MyUser/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/MyUser/.npm/_logs/2021-08-24T16_05_54_449Z-debug.log
I bypassed these errors with npm install react-native-smtp-mailer --save --legacy-peer-deps.
Then when I ran cd ios && pod install, I got the following error:
[!] use_native_modules! skipped the react-native dependency 'react-native-smtp-mailer'. No podspec file was found.
- Check to see if there is an updated version that contains the necessary
podspec file
- Contact the library maintainers or send them a PR to add a podspec. The
react-native-webview podspec is a good example of a package.json driven
podspec. See
https://github.com/react-native-community/react-native-webview/blob/master/react-native-webview.podspec
- If necessary, you can disable autolinking for the dependency and link it
manually. See
https://github.com/react-native-community/cli/blob/master/docs/autolinking.md#how-can-i-disable-autolinking-for-unsupported-library
I assume this is because this library is not supported in the latest React-Native versions? Can you please update this package so it can be installed natively on the latest React Native versions?
When I ran
npm install react-native-smtp-mailer --save
, I got the following error:I bypassed these errors with
npm install react-native-smtp-mailer --save --legacy-peer-deps
.Then when I ran
cd ios && pod install
, I got the following error:I assume this is because this library is not supported in the latest React-Native versions? Can you please update this package so it can be installed natively on the latest React Native versions?