react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

Build fails when adding config plugin in expo

Open singhayush1403 opened this issue 1 year ago • 4 comments

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 Screenshot 2023-07-06 at 7 23 23 PM Screenshot 2023-07-06 at 7 26 03 PM

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


singhayush1403 avatar Jul 06 '23 14:07 singhayush1403

check this link: https://usmanabid477.medium.com/in-app-purchase-integration-in-react-native-app-96c0acd13649

usmanabid94 avatar Jul 13 '23 06:07 usmanabid94

11 Apr 2024 and I confirm that this error still occurs

liannguyentribal avatar Apr 11 '24 12:04 liannguyentribal

add fingerprint to ur dependencies

yarn add @expo/fingerprint

zeta-gc avatar Apr 24 '24 10:04 zeta-gc