React Native metro bundler's running issue - react-native

I am developing mobile app using React-native-cli.
But I have got one difficult problem to solve.
I don't know why this issue is appeared.
I want RN experts to help me to solve this problem.
This issue is following.
I tried to run my app using following command.
react-native run-android -- --reset-cache
When my internet speed is very fast, my app is running well, but when internet speed is some slowly, it is not running.
My project is based on RN 0.59.
issue:
error: bundling failed: Error: Unable to resolve module scheduler/tracing from \working\temp\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js: Module scheduler/tracing does not exist in the Haste module map
please help me!!! :)enter image description here

Related

Unable to run react-native-windows after installing react-navigation

I installed the react-native windows application, following the steps mentioned here. After that I ran the application and it started up perfectly fine. Then I tried adding the react navigation package following the given steps. But when I try to build the application again I am getting the following error:
I have spent a lot of time trying to figure it out and I have gone through various steps that I could find online to rectify this issue, but they have not been useful. I have also double checked that all the dependencies are installed.
Any help will be greatly appreciated.

Cannot find module 'babel-plugin-graphql-tag' when running App with React Native 0.59.1

I ran into that strange issue after upgrading to React Native 0.59.1 and trying to run my app on iOS devices in xcode.
Loading dependency graph, done.
error: bundling failed: Error: Cannot find module 'babel-plugin-graphql-tag' from '/Users/me/react_projects/my-app'
- If you want to resolve "graphql-tag", use "module:graphql-tag"
I tried to install some potentially missing packages but it does not help. I can post my package.json if that helps.
Many thanks in advance for any help!

React Native Example App does not run in Expo Snack

I'm learning React Native and trying to add a component to an Expo Snack for testing. I can't even get the example app to work though.
Is it something different about how Snacks work vs. a desktop development environment? I've encountered that type of difference using JSFiddle, for example.
I straight copy-pasted the code from the Github repo into snack.expo.io and it gave me an error:
Device: (946:881) Unable to resolve module 'module://expo-font.js'
Evaluating module://expo-font.js
Evaluating module://react-native-numeric-input.js
Evaluating module://App.js
Loading module://App.js
I've gotten this error before, but I've never been able to figure out why. Is it an issue with the package, which was updated just 7 days ago, or something else? Please advise.
It may be due to missing of node modules in your project compared to the Github project. As the Stack.expo browser won't give us full freedom to install custom modules, I suggest you to download VS Code and open the Github project in it, then do "npm install" from cmd and "react-native run-android/ios".

There are several files providing this module error while running react native application

I have created an android module from here and added to my project. Now I am getting below error while running application.
bundling failed: ambiguous resolution: module projectpath\index.js tries to require react-native, but there are several files providing this module. You can delete or fix them:
Got the solution. following command help me to overcome above error
yarn start --reset-cache

Metro Bundler has encountered an internal error(React native)

I have installed the complete packages which are required for react native project. But after running the project i am getting this error i am not sure why.
I have also searched this issue on the internet but no luck.
Thanks
Amit