自降级依赖性以来,出现了与模块相关的新型错误

Cam*_*ous 6 frontend module package.json react-native

嘿,我最近将“ react-native-tab-view”:“ ^ 2.2.0”降级为“ ^ 1.3.2”,在关闭模拟器和终端之前,它一直运行良好。重新运行它后,无论该代码停留在什么地方,都会显示以下错误。谁能帮忙

我尝试将最重要的版本替换为先前的版本,并将代码结构改回以前的版本,以确保以防万一。但是没有结果

Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(Unable to resolve module `_wrapObjectFreezeAndFriends` from `/Users/camillebasbous/Project/node_modules/react-native/Libraries/Core/polyfillES6Collections.js`: Module `_wrapObjectFreezeAndFriends` does not exist in the Haste module map

This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
  1. Clear watchman watches: `watchman watch-del-all`.
  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
  3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.
  4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`. (null))

__38-[RCTCxxBridge loadSource:onProgress:]_block_invoke.228
    RCTCxxBridge.mm:414
___ZL36attemptAsynchronousLoadOfBundleAtURLP5NSURLU13block_pointerFvP18RCTLoadingProgressEU13block_pointerFvP7NSErrorP9RCTSourceE_block_invoke.118
__80-[RCTMultipartDataTask URLSession:streamTask:didBecomeInputStream:outputStream:]_block_invoke
-[RCTMultipartStreamReader emitChunk:headers:callback:done:]
-[RCTMultipartStreamReader readAllPartsWithCompletionCallback:progressCallback:]
-[RCTMultipartDataTask URLSession:streamTask:didBecomeInputStream:outputStream:]
__88-[NSURLSession delegate_streamTask:didBecomeInputStream:outputStream:completionHandler:]_block_invoke
__NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__
-[NSBlockOperation main]
-[__NSOperationInternal _start:]
__NSOQSchedule_f
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_continuation_pop
_dispatch_async_redirect_invoke
_dispatch_root_queue_drain
_dispatch_worker_thread2
_pthread_wqthread
start_wqthread
Run Code Online (Sandbox Code Playgroud)

Sir*_*lam 1

不知道为什么有人在评论里回答。

以下解决方案对我有用。

npm start ---重置缓存