react-native-iap
react-native-iap copied to clipboard
Build fails when adding config plugin in expo
Description
I am not able to add the config plugin into my expo config file. The build fails with an error 'CommandError: Package "react-native-iap" does not contain a valid config plugin. Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin
Cannot use import statement outside a module'
Expected Behavior
App build should execute successfully after adding the config plugin
Screenshots
Environment:
- react-native-iap: 11.0.0-rc.7
- react-native: 0.71.7
- Platforms (iOS, Android, emulator, simulator, device): Android/iOS device
To Reproduce Steps to reproduce the behavior:
. Create an expo react native project . Install react-native-iap . Add config plugin and run eas build -e production
check this link: https://usmanabid477.medium.com/in-app-purchase-integration-in-react-native-app-96c0acd13649
11 Apr 2024 and I confirm that this error still occurs
add fingerprint to ur dependencies
yarn add @expo/fingerprint