首页 > 其他 > 详细

【React Native】在React Native项目中使用rollbar-react-native记录

时间:2020-02-19 15:19:53      阅读:519      评论:0      收藏:0      [点我收藏+]

  1、Debug模式下会报如下错误:

  错误:Invariant Violation:Calling synchronous methods on native modules is not supported in Chrome.

  Consider providing alternative methods to expose this method in debug mode.e.g.bu exposing constants ahead-of-time.

  解决:Debug模式下,注释以下代码:

import { Client } from ‘rollbar-react-native‘;
const rollbar = new Client(‘6628ae4**********575f8e2f267‘);

 

【React Native】在React Native项目中使用rollbar-react-native记录

原文:https://www.cnblogs.com/xjf125/p/12331150.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!