module schedule/tracking does not exist in the Haste module map

后端 未结 3 779
感情败类
感情败类 2020-12-19 01:04

React Native Environment Info:

System:
  OS: macOS High Sierra 10.13.6
  CPU: x64 Intel(R) Core(TM) i3-7100 CPU @ 3.90GHz
  Memory: 559.26 MB / 16.00 GB
  Sh         


        
3条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-19 01:23

    If running with your versions of npm packages:

    react: 16.0.0 => 16.0.0 
    react-native: ^0.57.3 => 0.57.3
    

    We'll have the same error as below:

    error: bundling failed: Error: Unable to resolve module `scheduler/tracing` from 
    `C:\projects\rnw\node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer- 
    dev.js`: Module `scheduler/tracing` does not exist in the Haste module map
    

    Upgrade to the following versions:

    "dependencies": {
      "react": "16.6.3",
      "react-native": "0.58.1"
    },
    

    And the error will be gone.

提交回复
热议问题