当尝试将我的react-native应用程序升级到版本0.59时,在android上运行时出现此错误。
gene
这是我的包裹。
error: bundling failed: Error: While resolving module `react-native/Libraries/Renderer/shims/ReactNativePropRegistry`, the Haste package `react-native` was found. However the module `Libraries/Renderer/shims/ReactNativePropRegistry` could not be found within the package. Indeed, none of these files exist:
* `C:\Users\keyyu\Workspace\MyAppx64\MyApp\node_modules\react-native\Libraries\Renderer\shims\ReactNativePropRegistry(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)`
* `C:\Users\keyyu\Workspace\MyAppx64\MyApp\node_modules\react-native\Libraries\Renderer\shims\ReactNativePropRegistry\index(.native||.android.js|.native.js|.js|.android.json|.native.json|.json|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx)`
at resolveHasteName (C:\Users\keyyu\Workspace\MyAppx64\MyApp\node_modules\metro-resolver\src\resolve.js:236:9)
at Object.resolve (C:\Users\keyyu\Workspace\MyAppx64\MyApp\node_modules\metro-resolver\src\resolve.js:103:20)
at ModuleResolver.resolveDependency (C:\Users\keyyu\Workspace\MyAppx64\MyApp\node_modules\metro\src\node-haste\DependencyGraph\ModuleResolution.js:143:31)
at ResolutionRequest.resolveDependency (C:\Users\keyyu\Workspace\MyAppx64\MyApp\node_modules\metro\src\node-haste\DependencyGraph\ResolutionRequest.js:52:18)
at DependencyGraph.resolveDependency (C:\Users\keyyu\Workspace\MyAppx64\MyApp\node_modules\metro\src\node-haste\DependencyGraph.js:283:16)
at Object.resolve (C:\Users\keyyu\Workspace\MyAppx64\MyApp\node_modules\metro\src\lib\transformHelpers.js:261:42)
at dependencies.map.result (C:\Users\keyyu\Workspace\MyAppx64\MyApp\node_modules\metro\src\DeltaBundler\traverseDependencies.js:399:31)
at Array.map (<anonymous>)
at resolveDependencies (C:\Users\keyyu\Workspace\MyAppx64\MyApp\node_modules\metro\src\DeltaBundler\traverseDependencies.js:396:18)
at C:\Users\keyyu\Workspace\MyAppx64\MyApp\node_modules\metro\src\DeltaBundler\traverseDependencies.js:269:33
DELTA [android, dev] ./index.android.js ▓▓▓▓▓▓▓▓▓▓▓▓░░░░ 79.2% (1243/1397), failed.
我在Google上进行了搜索,其中大多数人说是由本机引起的,但看起来我的本机版本已解决了这个问题,并由其他软件包引起了。请帮助