简体   繁体   English

react-native中的JavaScriptException:{}

[英]JavaScriptException :{} in react-native

com.facebook.react.common.JavaScriptException : {} , I am getting this issue: https://lh3.googleusercontent.com/-dcP7z0OZd7E/WTD9h58OKmI/AAAAAAAAAMI/7gEpJgcPNcskrJYJhq4OfSUzeRyNvVUQQCL0B/h1280/3584356336441677400%253Faccount_id%253D2 com.facebook.react.common.JavaScriptException : {} ,我收到此问题: https : com.facebook.react.common.JavaScriptException : {}

don't know whats getting wrong? 不知道出什么问题了吗?

I had the same error when I put es2015 preset in my .babelrc file. es2015预设放入.babelrc文件时,我遇到了相同的错误。

  • Remove es2015 preset from .babelrc, use react-native instead es2015删除es2015预设,改为使用react-native
  • Start the react native packager with react-native start --resetCache 使用react-native start --resetCache启动react native打包react-native start --resetCache

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM