#button-20_error
1 messages Β· Page 1 of 1 (latest)
π Welcome to your new thread!
β²οΈ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
β±οΈ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
π This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1445741017675464836
π Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- button-20_rn-identity-asset-missing, 11 hours ago, 61 messages
hey there π could you share a screenshot of where you see the error?
and you mentioned that it shows up after the consent screen of Stripe IDV - by this, do you mean this flow: https://docs.stripe.com/identity/verify-identity-documents?platform=react-native&type=new-integration
Yes exactly
ok, and does this error happen before or after you present the Verification Sheet?
could you share the ID (vs_xxxx) of the Verification Session you experienced this with?
thank you! to confirm, have you implemented these recommendations:
https://docs.stripe.com/identity/verify-identity-documents?platform=react-native&type=new-integration#test-the-verification-sheet
- Put a breakpoint where you fetch the VerificationSession ID and ephemeral key secret.
- Verify that no network errors exist and that the endpoint is returning a VerificationSession ID and ephemeral key secret.
Hey! Taking over for my colleague. Let me catch up.
What is not working exactly , can you share more details please ?
Any error message ?
Yes I saw this but it's not conclusive sorry
Maye I ask you to reproduce using our official example and share back the reproduction steps ?
https://github.com/stripe/stripe-identity-react-native/tree/main/example
Okay
The post install not working since it's windows:
> stripe-identity-react-native-example@0.0.1 postinstall
> bash scripts/postinstall.sh
scripts/postinstall.sh: line 2: $'\r': command not found
sed: can't read s/com\.facebook\.react:react-native:+/com.facebook.react:react-android:0.73.9/g: No such file or directory
: No such file or directorys/react-native-safe-area-context/android/build.gradle
scripts/postinstall.sh: line 5: $'\r': command not found
sed: can't read s/com\.facebook\.react:react-native:+/com.facebook.react:react-android:0.73.9/g: No such file or directory
: No such file or directorys/react-native-screens/android/build.gradle
scripts/postinstall.sh: line 8: $'\r': command not found
sed: can't read s/RNSAC_kotlinVersion=.*/RNSAC_kotlinVersion=1.8.21/g: No such file or directory
: No such file or directorys/react-native-safe-area-context/android/gradle.properties
scripts/postinstall.sh: line 11: $'\r': command not found
scripts/postinstall.sh: line 38: syntax error: unexpected end of file
npm error code 2
npm error path C:\Mobile Development\stripe-identity-react-native\example
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c bash scripts/postinstall.sh
npm error A complete log of this run can be found in: C:\Users\SoundIt\AppData\Local\npm-cache\_logs\2025-12-03T12_24_41_109Z-debug-0.log
Hello
Not very familiar with Windows, but how are you currently running ReactNative in your current OS ?
Not sure then I understand why you aren't able to run the example I shared with you ?
From the error here, bash is a Mac command not Windows
What command are you running ?
The issue is with running the script scripts/postinstall.sh
You are getting this from what comand ? yarn android?
npm i
Okay
Great!!! The script worked
Got this error while running "npm run android".
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Mobile Development\stripe-identity-react-native\example\node_modules\react-native-safe-area-context\android\build.gradle' line: 41
* What went wrong:
Could not compile build file 'C:\Mobile Development\stripe-identity-react-native\example\node_modules\react-native-safe-area-context\android\build.gradle'.
> startup failed:
build file 'C:\Mobile Development\stripe-identity-react-native\example\node_modules\react-native-safe-area-context\android\build.gradle': 41: Unexpected character: '`' @ line 41, column 10.
android {`r`n kotlinOptions {`r`n jvmTarget = "1.8"`r`n }
Can you open the android gradle file and see what it the issue in line 41 ?
Between you are following this guide right ?
https://docs.stripe.com/identity/verify-identity-documents?platform=react-native&type=new-integration
Because usually the issue you are facing is due to a mismatch between the verification Session and its ephemeral key used
Can you fix it by removing the rn?
Nice, now can you try to generate a verification session ?
Okay
BUNDLE ./index.js
error: Error: Unable to resolve module @babel/runtime/helpers/interopRequireDefault from C:\Mobile Development\stripe-identity-react-native\src\hooks\useStripeIdentity.tsx: @babel/runtime/helpers/interopRequireDefault could not be found within the project.
> 1 | import { useState } from 'react';
| ^
2 | import { presentIdentityVerificationSheet } from '../functions';
3 | import type {
4 | IdentityVerificationSheetOptions,
at ModuleResolver.resolveDependency (C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:139:15)
at DependencyGraph.resolveDependency (C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\node-haste\DependencyGraph.js:232:43)
at C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\lib\transformHelpers.js:156:21
at resolveDependencies (C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\DeltaBundler\buildSubgraph.js:42:25)
at visit (C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\DeltaBundler\buildSubgraph.js:83:30)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async Promise.all (index 1)
at async visit (C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\DeltaBundler\buildSubgraph.js:92:5)
at async Promise.all (index 3)
at async visit (C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\DeltaBundler\buildSubgraph.js:92:5)
Got this error
When the app launched, it threw this error
Do I need to install the package?
Yes the one you shared with me
Ok maybe this is somthing related to windows
This issue will require an in-depth investigation from our team in order to figure out the root cause.
I tried it again
Got this error
BUNDLE ./index.js
error: Error: Unable to resolve module @babel/runtime/helpers/interopRequireDefault from C:\Mobile Development\stripe-identity-react-native\src\functions.ts: @babel/runtime/helpers/interopRequireDefault could not be found within the project.
> 1 | import StripeIdentityReactNative from './StripeIdentitySdk';
| ^
2 | import type {
3 | IdentityVerificationSheetOptions,
4 | IdentityVerificationSheetResult,
at ModuleResolver.resolveDependency (C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:139:15)
at DependencyGraph.resolveDependency (C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\node-haste\DependencyGraph.js:232:43)
at C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\lib\transformHelpers.js:156:21
at resolveDependencies (C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\DeltaBundler\buildSubgraph.js:42:25)
at visit (C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\DeltaBundler\buildSubgraph.js:83:30)
at async Promise.all (index 0)
at async visit (C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\DeltaBundler\buildSubgraph.js:92:5)
at async Promise.all (index 3)
at async visit (C:\Mobile Development\stripe-identity-react-native\example\node_modules\metro\src\DeltaBundler\buildSubgraph.js:92:5)
at async Promise.all (index 11)
May I ask you share a minimal reproduction project via the DM you'll be receiving ?
Hello @narrow slate, we have sent you a direct message, please check it at https://discord.com/channels/@me/1443002818452520990
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Of this one you shared or the error I was initially facing?
The one I shared probbaly you need just to install the library @babel/runtime in both the example and the root library in your local env
You can share a reproduction steps if you managed to run the official example I shared with you
Or share a minimal reproduction steps on another sample project using the latest SDK.
Okay it works now. I'm about to try the verification
Now try and reproduce the issue on that sample or you can simply re-use it