大佬求助这个报错是什么



  • Loading dependency graph, done.
    error: bundling failed: Error: Unable to resolve module NativeModules from lscomponents\util\imUtil.js: NativeModules could not be found within the project.

    If 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:\wy1907\myJs\NewWeilink\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:186:15)
      at ResolutionRequest.resolveDependency (d:\wy1907\myJs\NewWeilink\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18)
      at DependencyGraph.resolveDependency (d:\wy1907\myJs\NewWeilink\node_modules\metro\src\node-haste\DependencyGraph.js:282:16)
      at Object.resolve (d:\wy1907\myJs\NewWeilink\node_modules\metro\src\lib\transformHelpers.js:267:42)
      at dependencies.map.result (d:\wy1907\myJs\NewWeilink\node_modules\metro\src\DeltaBundler\traverseDependencies.js:426:31)
      at Array.map (<anonymous>)
      at resolveDependencies (d:\wy1907\myJs\NewWeilink\node_modules\metro\src\DeltaBundler\traverseDependencies.js:423:18)
      at d:\wy1907\myJs\NewWeilink\node_modules\metro\src\DeltaBundler\traverseDependencies.js:275:33
      at Generator.next (<anonymous>)
      at asyncGeneratorStep (d:\wy1907\myJs\NewWeilink\node_modules\metro\src\DeltaBundler\traverseDependencies.js:87:24)
      BUNDLE [android, dev] ./index.js ▓▓▓▓░░░░░░░░░░░░ 27.4% (48/301), failed.

    ::ffff:127.0.0.1 - - [23/Dec/2019:07:24:05 +0000] "GET /index.bundle?platform=android&dev=true&minify=false HTTP/1.1" 500 - "-" "okhttp/3.12.1"


Log in to reply