react-native 爬坑錯(cuò)誤集合

錯(cuò)誤:TransformError
解決:
yarn remove babel-preset-react-native
yarn add babel-preset-react-native@2.1.0

錯(cuò)誤:Navigator is deprecated and has been removed from this package
解決:npm install react-native-deprecated-custom-components --save

錯(cuò)誤:Navigator is deprecated and has been removed from this package
解決:
npm install react-native-deprecated-custom-components --save
頁(yè)面引用:import {Navigator} from 'react-native-deprecated-custom-components'

錯(cuò)誤:Duplicate declaration "Navitogar"
解決:重復(fù)引用 "Navitogar",刪除一個(gè)

錯(cuò)誤:NSInternalInconsistencyException: bundleURL must be non-nil when not implementing loadSourceForBridge
解決:因?yàn)橄到y(tǒng)開(kāi)了ss代理工具,關(guān)閉即可

錯(cuò)誤:Cannot find entry file index.ios.js in any of the roots…
解決:rm -rf node_modules  (刪掉原來(lái)的重新來(lái)一遍即可)

錯(cuò)誤:Could not connect to development server.  (ERROR Error watching file for changes: EMFILE)
解決:安裝 brew install watchman

錯(cuò)誤:antd-mobile does not exist in the module map (react-native)
解決:[“import”, { “l(fā)ibraryName”: “antd-mobile”, “style”: “css” }]改成:[“import”, { “l(fā)ibraryName”: “antd-mobile”}]

錯(cuò)誤:CFBundleIdentifier”, Does Not Exist
解決:react-native upgrade

錯(cuò)誤:no bundle url present
解決:(由于開(kāi)了代理服務(wù)器SS),關(guān)閉SS
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容