Open singhayush1403 opened 1 year ago
11 Apr 2024 and I confirm that this error still occurs
add fingerprint to ur dependencies
yarn add @expo/fingerprint
I believe this is relevant.
https://github.com/dooboolab-community/react-native-iap/pull/2218
Please try updating to version 12 or above.
I was able to resolve it at least with this method.
Be careful that running yarn add react-native-iap@next installs v11, not the latest one.
yarn add react-native-iap
installs the latest v12.
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:
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