#button-20_error

1 messages Β· Page 1 of 1 (latest)

raven hemlockBOT
#

πŸ‘‹ 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.

sick gust
#

hey there πŸ‘‹ could you share a screenshot of where you see the error?

narrow slate
sick gust
narrow slate
#

Yes exactly

sick gust
#

ok, and does this error happen before or after you present the Verification Sheet?

narrow slate
#

Yes please

#

After it

sick gust
#

could you share the ID (vs_xxxx) of the Verification Session you experienced this with?

narrow slate
#

Okay

#

vs_1SaDl1BMbDQDL27wtScbFOHP

sick gust
narrow slate
#

Yes I tried these

#

It's working for IOS but Android gets this error

raven hemlockBOT
paper tide
#

Hey! Taking over for my colleague. Let me catch up.

paper tide
#

Any error message ?

narrow slate
#

Yes on Android

paper tide
#

Yes I saw this but it's not conclusive sorry

narrow slate
#

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
narrow slate
#

Hello

paper tide
#

Not very familiar with Windows, but how are you currently running ReactNative in your current OS ?

narrow slate
#

I run it normally with Expo

#

Even though it can still be run without Expo

raven hemlockBOT
paper tide
#

Not sure then I understand why you aren't able to run the example I shared with you ?

narrow slate
#

From the error here, bash is a Mac command not Windows

paper tide
#

What command are you running ?

#

The issue is with running the script scripts/postinstall.sh

narrow slate
#

Yes .sh files are MacOS batch files

#

.bat is a Windows batch file

paper tide
narrow slate
#

npm i

paper tide
#

And run this bat file manuall after npm i or yarn install

narrow slate
#

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    }
paper tide
#

Can you open the android gradle file and see what it the issue in line 41 ?

#

Because usually the issue you are facing is due to a mismatch between the verification Session and its ephemeral key used

narrow slate
#

Okay

paper tide
#

Can you fix it by removing the rn?

narrow slate
#

Okay

#

It works

paper tide
#

Nice, now can you try to generate a verification session ?

narrow slate
#

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?

paper tide
#

This shouldn't be required πŸ€”

#

You are pulling the latest version right ?

narrow slate
#

Yes the one you shared with me

paper tide
#

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.

narrow slate
#

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)
paper tide
#

May I ask you share a minimal reproduction project via the DM you'll be receiving ?

raven hemlockBOT
#

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.
narrow slate
paper tide
#

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.

raven hemlockBOT
narrow slate
paper tide
#

Now try and reproduce the issue on that sample or you can simply re-use it

narrow slate
#

Yeah doing that now

#

It worked

#

So the problem here is.....When using the verification flow ID, it throws the error but when you use the manual method, it works

#

I'll use the manual method then

#

@paper tide Thanks a lot

paper tide
#

Nice, glad to hear that you managed to solve the issue.

#

Happy to help!