ios模拟器一打开报错



  • Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(Unable to resolve module react-native-keyboard-aware-scroll-view from /Users/fuyiwei/reactProject/iwin/src/views/login/LoginSecret.js: Module react-native-keyboard-aware-scroll-view 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.233
    RCTCxxBridge.mm:429
    ___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
    /////有道翻译
    加载bundle失败(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false),错误:(无法解析模块' react-native-keyboard- awarescrollview ' from ' /Users/fuyiwei/reactProject/iwin/src/views/login/LoginSecret ')。模块“response -native-keyboard-aware-scroll-view”在加速模块映射中不存在

    这可能与https://github.com/facebook/react-native/issues/4968有关
    要解决这个问题,请尝试以下方法:

    1. Clear watchman watches:“watchman watch-del-all”。
    2. 删除“node_modules”文件夹:“rm -rf node_modules && npm install”。
      3.重新设置Metro Bundler缓存:' rm -rf /tmp/ Metro - Bundler -cache-* '或' npm start -- - Reset -cache '。
    3. 移除加速缓存:“rm -rf /tmp/haste-map- response -native-packager-*”。(空)

    __38 - [RCTCxxBridge loadSource: onProgress:] _block_invoke.233
    RCTCxxBridge.mm: 429
    ___ZL36attemptAsynchronousLoadOfBundleAtURLP5NSURLU13block_pointerFvP18RCTLoadingProgressEU13block_pointerFvP7NSErrorP9RCTSourceE_block_invoke.118
    __80 - [RCTMultipartDataTask URLSession: streamTask: didBecomeInputStream: outputStream:] _block_invoke
    ——[RCTMultipartStreamReader emitChunk:标题:回调:完成:]
    ——[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主要)
              • [__NSOperationInternal的地方:]
                __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

    //按照提示步骤走了还是这个问题

    package.json配置
    0_1558585683511_72d38b75-d382-4e7c-beed-e6fd9ebc5579-image.png



  • 麻烦大家看一下 这是什么问题



  • @fuyiweihui react-native-keyboard 重新装下