1. 程式人生 > >ReactNative——問題:Unable to resolve module 'AccessibilityInfo'...doesn't exist in the Haste module map

ReactNative——問題:Unable to resolve module 'AccessibilityInfo'...doesn't exist in the Haste module map

RN工程執行報錯:

Unable to resolve module 'AccessibilityInfo' from '...\node_modules\react-native\Libraries\react-native\react-native-implementation.js': Module 'AccessibilityInfo' does not exist in the Haste  module map

解決:

這個問題似乎是由於0.56.0版本所引起的依賴關係的錯誤,開啟根目錄下的package.json,檢視react-native的版本是不是0.56.0:

若是0.56.0,則將其降級為0.55.4

,在你專案的根目錄下開啟命令列(或者cd到專案根目錄下)

執行:npm install [email protected]

相關推薦

ReactNative——問題Unable to resolve module 'AccessibilityInfo'...doesn't exist in the Haste module map

RN工程執行報錯: Unable to resolve module 'AccessibilityInfo' from '...\node_modules\react-native\Libraries

android Studio 出現Unable to resolve dependency for ':
cents上運行wget報錯unable to resolve host address

服務器環境 res names address pop data rfi 5.6 entos wget命令報錯。無法解析域名"www.keepalived.rog

MariaDB Error1932 Table doesn't exist in engine 的解決方法

1,正式區,MySQL服務及DB安裝在D盤 2,測試我,MySQL服務及DB安裝在C盤 問題1,將正式區相應DB File目錄複製到測試區後,無法開啟Table,檢視Err Log發現,報1932的錯誤: 1932: Table 'mysql.gtid_slave_po

【程式碼】thinkphp檢視模型查詢失敗提示ERR: 1146:Table ‘db.pr_order_view’ doesnt exist

想用thinkphp的檢視模型進行關聯查詢,結果出現了這樣兒的問題(log日誌記錄):ERR: 1146:Table 'db.pr_order_view' doesn't exist,我就納悶兒,檢視模型怎麼出來的sql是這樣兒的呢,檢視模型如下: /**   * 訂單

ionic編譯時報app.module.ngfactory doesn't exist 的問題?

Error: ./src/app/main.ts Module not found: Error: Can’t resolve ‘./app.module.ngfactory’ in ‘F:\huixiaoweiCodeSVN\Branches\yhHXW_V

React Native: Unable to resolve module 'accessibilityinfo'

eset clear install ble ive node tmp 6.0 acc 官方解決方案: 1. Clear watchman watches: `watchman watch-del-all`. 2. Delete the `node_modules` fol

react-native 500 Unable to resolve module 'AccessibilityInfo', when trying to create release bundle.

react-native 在pc端使用模擬器時遇到的RN版本衝突問題的解決方案: 配置react-native環境中,編譯執行React Native 應用時,出現紅屏,500錯誤。錯誤:“Unable to resolve module 'AccessibilityInf

ReactNative踩坑之旅: Unable to resolve module 和 Error: Plugin

我是在windows搭建的, 過程中碰見了很多問題, 大多數簡單的搜尋就可以解決, 但有兩個較難排查, 現在記錄於下 ps. 建議別用windows自帶的命令列, 出現問題後報錯資訊不能複製是個坑, 建議用WebStorm自帶的Terminal, 自動

Unable to resolve module 'AccessibilityInfo' 的解決方案

最近在研究React Native APP 開發,但是按照官方給出來的搭建方案建立了一個AwesomeProject後, 執行 react-native run-android 安裝Android APP後卻是一屏大紅幕報 Unable to resolve modul

一組相關聯的問題“sudo: unable to resolve host ###: Connection timed out”、軟件啟動速度超慢、IPv6無法使用

acs sts 原因 命令 最終 hostname med 出現 connect 近日陸續發現計算機出現幾個問題,最終發現這些問題實際上是由同一個原因導致的 問題1:無法使用IPv6 問題2:無論是啟動Emacs GUI還是在命令行中執行emacs -nw指令,打開Emac

Unable to resolve module crypto

with n-n pin sta pack nod pda ping eps Add rn-nodeify to your devDependencies in package.json: "devDependencies": { "rn-nodeify": "^6.

RN異常:"Unable to resolve module `react-native/Libraries/vendor/emitter/EventEmitter`

1.基本原因:因為版本的不同使得EventEmitter層級目錄發生變化,而最終導致無法找到該檔案 2.解決方法步驟如下:       a.首先先安裝EventEmitter   npm install EventEmitter       b.如果還報錯的話,試著

React Native --bundling failed: Error: Unable to resolve module /../react-transform-hmr/lib/index.js

前言 第一次執行 React Native,各種問題,坑死!!! 這裡總結幾個 bug 。 此處針對的 React Native 版本為 "react-native": "0.57.2" 問題一 sha

ReactNative--出現異常的解決方法Unable to load script from assets 'index.android.bundle'

當我們搭建環境,執行第一個專案時手機介面出現紅色背景,這說明報異常了,不能正常編譯。我是在真機上進行的測試出現的問題。廢話不多說,上正題。 首先先說一個問題我這個是新版本建立的專案,此時專案根目錄是沒有index.android.js檔案的,我看網上說手動複製index.js重新命名一個

React-Native Image載入本地圖片報錯error: bundling failed: Error: Unable to resolve module

在初步學習React-Native 用Imgae載入本地的時候 遇到了這個問題,程式碼是這樣的在根目錄下的images資料夾內有backicon.png這張圖片按上面配置的路徑,在程式碼中是可以定位到圖片的,但是實際執行測試就報錯找不到這個圖片,後來測試才發現要這樣寫改成這樣

error: bundling: UnableToResolveError: Unable to resolve module `react/lib/ReactDebugCurrentFrame`

我們在使用react native的時候可能會遇到這個問題,官方推薦做法是: This might be related to https://github.com/facebook/react-native/issues/4968 To re

React-Native_學習筆記1: Unable to resolve module Dimensions from “...js” Invalid directory /Users/node_m

在使用第三方的元件的時候遇到如題的錯誤提示,原因是第三方組建中呼叫Dimensions 發生的錯誤,解決方法:修改第三方元件 “。js”檔案中的程式碼 var screen = require('D

【Python】selenium調用IE11瀏覽器,報錯“找不到元素”NoSuchWindowException: MessageUnable to find element on closed window

conn ont csdn creates logs 註冊 target get 意思 當編寫自動化腳本,定位瀏覽器元素時,報如下錯誤: 代碼: >>> # coding=utf-8 >>> from selenium import w

Eclipse4.6安裝Tomcat插件時報錯Unable to read repository at http://tomcatplugin.sf.net/update/content.xml. Received fatal alert: handshake_failure

logs tomcat repos cef blog 時報 技術分享 src tom 錯誤如下: Unable to read repository at http://tomcatplugin.sf.net/update/content.xml.Received fat