Javascript 如何处理;“缺少信息”;react intl中的错误?

Javascript 如何处理;“缺少信息”;react intl中的错误?,javascript,reactjs,react-intl,Javascript,Reactjs,React Intl,我使用的是react intl版本2.4.0,对于某些翻译,我在控制台中收到“丢失消息”错误。有没有办法在不升级到v3的情况下处理它们 <IntlProvider locale="ru" messages={localeData.ru} > <Layout> <Component {...props} /> </Layout> </In

我使用的是react intl版本2.4.0,对于某些翻译,我在控制台中收到“丢失消息”错误。有没有办法在不升级到v3的情况下处理它们

<IntlProvider
        locale="ru"
        messages={localeData.ru}
      >
        <Layout>
          <Component {...props} />
        </Layout>
      </IntlProvider>


我没有在GH上读到这个问题,但是如果你滚动到底部,你会看到现在有一个(从v2.7.1开始)提供自定义错误处理程序

   <IntlProvider onError={myCustomErrorFunction} />


提供您自己的错误处理程序(不带
控制台。error
),控制台错误应该消失

你所说的“处理它们”是什么意思?如果不升级到v3,这将有点棘手。若您碰巧看到了这个注释@BrettDeWoody,请不要在控制台中显示错误