最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Unable to resolve module `schedulertracing` react native - Stack Overflow

programmeradmin2浏览0评论

i get some error like this in react-native run-android process

error: bundling failed: 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 my 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

How to resolve this ?, thanks

i get some error like this in react-native run-android process

error: bundling failed: 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 my 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

How to resolve this ?, thanks

Share Improve this question asked Jan 10, 2019 at 8:19 Miftah FaridMiftah Farid 1671 gold badge3 silver badges13 bronze badges 2
  • This exactly what i am getting for error.. but unfortunately no respond yet :( – greenridinghood Commented Jan 25, 2019 at 19:14
  • ust try to remove node_module and try to re-install the node_module. – Miftah Farid Commented Apr 7, 2019 at 22:12
Add a ment  | 

3 Answers 3

Reset to default 3

This type of error es due to dependency related issues. Just try to remove node_module and try to re-install the node_module.

Just make sure you update this In app.json, change sdkVersion to "33.0.0" and package.json to //react-native to "https://github./expo/react-native/archive/sdk-33.0.0.tar.gz" //expo to "^33.0.0" //react to "16.8.3" — (this exact version) with these things

if you are using "react-native": "^0.59.8", update your react to "react": "16.8.5".

发布评论

评论列表(0)

  1. 暂无评论