Encountering an issue with finding the module `scheduler/tracing` in React Native

Encountering an error during the react-native run-android process:

Error: Unable to resolve module `scheduler/tracing` from `/Users/miftahali/projects/react/appscustomec/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js`: Module `scheduler/tracing` does not exist in the Haste module map

This is my current Environment:

React Native Environment Info:
    System:
      OS: macOS 10.14.2
      CPU: (4) x64 Intel(R) Core(TM) i5-4260U CPU @ 1.40GHz
      Memory: 38.67 MB / 4.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 10.0.0 - ~/.nvm/versions/node/v10.0.0/bin/node
      npm: 5.6.0 - ~/.nvm/versions/node/v10.0.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        API Levels: 19, 20, 23, 25, 26, 27
        Build Tools: 23.0.1, 25.0.3, 26.0.1, 27.0.3, 28.0.3
    IDEs:
      Android Studio: 3.2 AI-181.5540.7.32.5056338
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.4.1 => 16.4.1 
      react-native: ^0.57.8 => 0.57.8 
    npmGlobalPackages:
      create-react-native-app: 1.0.0

Seeking guidance on resolving this issue. Thank you.

Answer №1

Errors like this often occur when there are dependency problems. One solution is to delete the node_module folder and then reinstall it to resolve the issue.

Answer №2

To ensure everything works smoothly, remember to update the following: Update sdkVersion to "33.0.0" in app.json Modify package.json as follows: //react-native to "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz" //expo to "^33.0.0" //react to "16.8.3" — (specifically this version) Make sure to implement these changes

Answer №3

To ensure compatibility with "react-native": "^0.59.8", make sure to upgrade your react version to "16.8.5".

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

What is the best way to implement TrackballControls with a dynamic target?

Is there a way to implement the three.js script TrackballControls on a moving object while still allowing the camera to zoom and rotate? For example, I want to track a moving planet with the camera while giving the user the freedom to zoom in and rotate ar ...

The Bootstrap validator triggers the form submission only after the second click

When I click on the submit button, I am attempting to submit a form that has its default action prevented and first checks a condition before proceeding. Below is the code snippet: $('#payment-form').bootstrapValidator({ live: 'dis ...

Troubleshooting jQuery and Mootools compatibility problem in Internet Explorer 8

I am currently working on a webpage that is using both Mootools 1.4 and jQuery 1.5.1 at the same time. I understand that this setup is not ideal, but for various reasons, I have no choice in the matter. Most browsers display the page without any issues, ho ...

Listening to events on the iterative variable of NgFor directive in Angular 2

Angular2 has been my latest exploration in solving a unique data binding challenge. In my UI, I've presented a javascript array of objects like a database recordset in an HTML table. Each row contains menus and inputs allowing users to modify the rec ...

Mongoose virtual population allows you to fetch related fields

When attempting to utilize virtual populate between two models that I've created, the goal is to retrieve all reviews with the tour id and display them alongside the corresponding tour. This is achieved by using query findById() to specifically show o ...

React-Query leads to variable becoming undefined upon component update

I'm currently utilizing dnd-beautiful-kit to organize Cards on my platform. Each Card contains specific information, as shown in the video, along with an Avatar component. The Avatar can either display the user's image (if avatarSource exists) or ...

Utilize Javascript ES6 to Sort Through Data in a Table

I require assistance with my project using Material UI and React. There are two key implementations that I need: I am looking to create a filtering system for all rows in each column as shown in the attached image. Additionally, I need a button that can a ...

Custom palette in Material UI design palette allows users to create

Hey there everyone! I've been working on a website using ReactJS and Material UI, starting with this cool template. One thing I'm trying to do is change the color of the TextField when it's focused. Right now it's blue, but I want it ...

Modify one specific variable within my comprehensive collection on Firebase Firestore

After clicking the button, I need to update a variable. The variable in question is "bagAmount" and it is stored in my firestore collection. Here is a link to view the Firestore Collection: Firestore Collection Currently, I am able to update one of the va ...

Do multiple AJAX calls share parameters?

I have a JavaScript function as shown below: function makeAjaxCall(outerParameter1, outerParameter2, outerDivId, paramInput){ $.ajax({ type: "POST", url: "some time taking LargeWebMethod or URL", //may take some time to return output dat ...

Is it possible to execute a JavaScript command before the function finishes its execution?

Is there a way to hide a button when a function starts, display some text, and then hide the text and show the button again when the function finishes? I'm struggling with this task because JavaScript doesn't output anything to the screen until ...

When converting a JSON Array to a Java array, the final element is assigned to the second index position

Currently, I am dealing with a local JSON file and encountering an issue when trying to parse it into a Java data structure. Strangely, the last element of the JSON array is being returned as the second element of the Java array. "text": [ ...

How can you eliminate a specific element from an HTML document?

Utilizing localStorage can be tricky when it comes to keeping the JSON file hidden from being displayed on the HTML page. One approach I used involves sending the JSON file to the client once and then performing all logic using that file. To prevent the JS ...

How can I adjust the border width of outlined buttons in material-ui?

Currently, I am in the process of modifying a user interface that utilizes Material-UI components. The task at hand involves increasing the thickness of the borders on certain outlined buttons. Is there a method through component props, themes, or styles t ...

In NodeJS, is there a comparable function to "base64.b85decode"?

Does nodejs have a function similar to "base64.b85decode"? This function utilizes the following character set - 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz !#$%&()*+-;<=>?@^_`{|}~ It is not a standard Ascii85 encoding, bu ...

LocationListener is not currently executing the onLocationChanged method

public class LocationMonitorService extends Service{ private LocationManager locationManager=null; private LocationListener locationListener=null; private static final String TAG = "Debug"; private Boolean flag = false; public static ...

Datatables ajax response not loading data into table

I don't have much experience with JavaScript, so I believe there may be a misconfiguration or something that I'm overlooking. My current setup involves using Datatables v1.10.7. I have a table with the required parts - a thead, tfoot, and a tbod ...

In what way can you set the sequence of properties in a JavaScript object for a MongoDB index while using node.js?

The MongoDB documentation emphasizes the importance of the sequence of fields in compound indexes. The definition of an object in ECMAScript states that it is an unordered collection of properties. When using MongoDB with node.js (such as with this mod ...

Retrieve JSON data from an object using the Amplify Storage feature

I recently retrieved data from an object in an S3 Bucket using Amplify. export function amplify() { let key = "68a92d44-f25a-4bd8-9543-cc95369ae9a0"; return Storage.get(key + ".json", { download: true }) .then(function(result) { return ...

I aim to add a button in my MainActivity.java that, upon being tapped, will trigger the code specified in MapsActivity.java

In my Android project, I have created a MapsActivity with corresponding activity_maps.xml. In my activity_main.xml file, there is a button that, when tapped, should display the current location marked by a marker. The code works perfectly fine when settin ...