美文网首页
react-native 爬坑错误集合

react-native 爬坑错误集合

作者: 程序猿吴彦祖 | 来源:发表于2017-08-26 10:13 被阅读0次
    错误:TransformError
    解决:
    yarn remove babel-preset-react-native
    yarn add babel-preset-react-native@2.1.0
    
    错误:Navigator is deprecated and has been removed from this package
    解决:npm install react-native-deprecated-custom-components --save
    
    错误:Navigator is deprecated and has been removed from this package
    解决:
    npm install react-native-deprecated-custom-components --save
    页面引用:import {Navigator} from 'react-native-deprecated-custom-components'
    
    错误:Duplicate declaration "Navitogar"
    解决:重复引用 "Navitogar",删除一个
    
    错误:NSInternalInconsistencyException: bundleURL must be non-nil when not implementing loadSourceForBridge
    解决:因为系统开了ss代理工具,关闭即可
    
    错误:Cannot find entry file index.ios.js in any of the roots…
    解决:rm -rf node_modules  (删掉原来的重新来一遍即可)
    
    错误:Could not connect to development server.  (ERROR Error watching file for changes: EMFILE)
    解决:安装 brew install watchman
    
    错误:antd-mobile does not exist in the module map (react-native)
    解决:[“import”, { “libraryName”: “antd-mobile”, “style”: “css” }]改成:[“import”, { “libraryName”: “antd-mobile”}]
    
    错误:CFBundleIdentifier”, Does Not Exist
    解决:react-native upgrade
    
    错误:no bundle url present
    解决:(由于开了代理服务器SS),关闭SS

    相关文章

      网友评论

          本文标题:react-native 爬坑错误集合

          本文链接:https://www.haomeiwen.com/subject/dfcpdxtx.html