React Native Vapi dependencies not installing
# support
s
I am creating a voice agent using Vapi in React Native(versions:- 0.80). After reading the document, when I am trying to install the dependencies, npm i @Vapi-ai/react-native @daily-co/react-native-daily-js @react-native-async-storage/async-storage@^1.15.7 react-native-background-timer@^2.3.1 react-native-get-random-values@^1.9.0 npm i --save-exact @daily-co/react-native-webrtc@118.0.3-daily.1 i am getting the error npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: sagemediamedia@0.0.1 npm error Found: @react-native-async-storage/async-storage@2.2.0 npm error node_modules/@react-native-async-storage/async-storage npm error @react-native-async-storage/async-storage@"^2.2.0" from the root project npm error npm error Could not resolve dependency: npm error peer @react-native-async-storage/async-storage@"^1.24.0" from @daily-co/react-native-daily-js@0.77.0 npm error node_modules/@daily-co/react-native-daily-js npm error @daily-co/react-native-daily-js@"*" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error C:\Users\subhasish.choudhury\AppData\Local\npm-cache\_logs\2025-07-01T06_04_15_087Z-eresolve-report.txt npm error A complete log of this run can be found in: C:\Users\subhasish.choudhury\AppData\Local\npm-cache\_logs\2025-07-01T06_04_15_087Z-debug-0.log
k
Install @react-native-async-storage/async-storage@^1.24.0 instead of v2.2.0 to match what @daily-co/react-native-daily-js expects, or use legacy-peer-deps with npm install to bypass the conflict..
s
i have done that then the app is not starting it is conflicting that asynce storage is not compatible with react native 0.80.0
k
s
please suggest a version which will work i am getting errors
> com.android.ide.common.process.ProcessException: ninja: Entering directory `D:\Projects\SageCLI\sagemobileapplication\android\app\.cxx\Debug\5d3x5z3c\armeabi-v7a' [0/2] Re-checking globbed directories... [1/2] Re-running CMake... -- Configuring incomplete, errors occurred! See also "D:/Projects/SageCLI/sagemobileapplication/android/app/.cxx/Debug/5d3x5z3c/armeabi-v7a/CMakeFiles/CMakeOutput.log". See also "D:/Projects/SageCLI/sagemobileapplication/android/app/.cxx/Debug/5d3x5z3c/armeabi-v7a/CMakeFiles/CMakeError.log". FAILED: build.ninja C:\Users\subhasish.choudhury\AppData\Local\Android\Sdk\cmake\3.22.1\bin\cmake.exe --regenerate-during-build -SD:\Projects\SageCLI\sagemobileapplication\node_modules\react-native\ReactAndroid\cmake-utils\default-app-setup -BD:\Projects\SageCLI\sagemobileapplication\android\app\.cxx\Debug\5d3x5z3c\armeabi-v7a C++ build system [clean] failed while executing: @echo off "C:\\Users\\subhasish.choudhury\\AppData\\Local\\Android\\Sdk\\cmake\\3.22.1\\bin\\ninja.exe" ^ -C ^ "D:\\Projects\\SageCLI\\sagemobileapplication\\android\\app\\.cxx\\Debug\\5d3x5z3c\\armeabi-v7a" ^ clean from D:\Projects\SageCLI\sagemobileapplication\android\app -- GLOB mismatch! -- GLOB mismatch! CMake Error at D:/Projects/SageCLI/sagemobileapplication/android/app/build/generated/autolinking/src/main/jni/Android-autolinking.cmake:9 (add_subdirectory): add_subdirectory given source "D:/Projects/SageCLI/sagemobileapplication/node_modules/@react-native-async-storage/async-storage/android/build/generated/source/codegen/jni/" which is not an existing directory. Call Stack (most recent call first): CMakeLists.txt:31 (include) CMake Error at ReactAndroid/cmake-utils/ReactNative-application.cmake:97 (target_link_libraries): Cannot specify link libraries for target "react_codegen_rnasyncstorage" which is not built by this project.
c
The main fix is upgrading these dependencies. If that doesn't work, please share how to reproduce the issue so I can check with the SDK team.
Copy code
"@config-plugins/react-native-webrtc": "10.0.0",
"@daily-co/config-plugin-rn-daily-js": "0.0.8",
"@daily-co/react-native-daily-js": "^0.76.0",
"@daily-co/react-native-webrtc": "118.0.3-daily.3",
"@vapi-ai/react-native": "0.2.4"
4 Views