I added Webrtc https://www.npmjs.com/package/react-native-webrtc module in my react-native-web app.
I used npm i -s react-native-webrtc
command. But while creating a build I am getting below error:
Error: Error: Unable to resolve module
react-native-webrtc
fromApp.js
: react-native-webrtc could not be found within the project or in these directories: node_modulesIf you are sure the module exists, try these steps: 1. Clear watchman watches: watchman watch-del-all 2. Delete node_modules: rm -rf node_modules and run yarn install 3. Reset Metro's cache: yarn start --reset-cache 4. Remove the cache: rm -rf /tmp/metro-* at ModuleResolver.resolveDependency (D:\smartek_project\video_conferencing\newchanges\VC_Frontend\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:186:15) at ResolutionRequest.resolveDependency (D:\smartek_project\video_conferencing\newchanges\VC_Frontend\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18) at DependencyGraph.resolveDependency (D:\smartek_project\video_conferencing\newchanges\VC_Frontend\node_modules\metro\src\node-haste\DependencyGraph.js:287:16) at Object.resolve (D:\smartek_project\video_conferencing\newchanges\VC_Frontend\node_modules\metro\src\lib\transformHelpers.js:267:42) at dependencies.map.result (D:\smartek_project\video_conferencing\newchanges\VC_Frontend\node_modules\metro\src\DeltaBundler\traverseDependencies.js:434:31) at Array.map () at resolveDependencies (D:\smartek_project\video_conferencing\newchanges\VC_Frontend\node_modules\metro\src\DeltaBundler\traverseDependencies.js:431:18) at D:\smartek_project\video_conferencing\newchanges\VC_Frontend\node_modules\metro\src\DeltaBundler\traverseDependencies.js:275:33 at Generator.next () at asyncGeneratorStep (D:\smartek_project\video_conferencing\newchanges\VC_Frontend\node_modules\metro\src\DeltaBundler\traverseDependencies.js:87:24)
Here is my package.json dependenci
"dependencies": {
"@babel/polyfill": "^7.10.1",
"@react-native-community/masked-view": "^0.1.10",
"@react-native-community/voice": "^1.1.4",
"@react-navigation/bottom-tabs": "^5.5.1",
"@react-navigation/native": "^5.5.0",
"@react-navigation/stack": "^5.4.1",
"babel-plugin-react-native-web": "^0.12.2",
"core-js": "^3.6.5",
"react": "16.11.0",
"react-dom": "^16.13.1",
"react-native": "^0.62.2",
"react-native-gesture-handler": "^1.6.1",
"react-native-reanimated": "^1.9.0",
"react-native-safe-area-context": "^3.0.2",
"react-native-screens": "^2.8.0",
"react-native-web": "^0.12.2",
"react-native-webrtc": "^1.75.3"
},
distributionUrl
fromandroid/gradle/wrapper/gradle-wrapper.properties
this path andclasspath
fromandroid/build.gradle
this path? I am using this version ofreact-native-webrtc
withreact-native v62.2
. – Shahnawaz Hossan