Javascript Sentry JS不会忽略全局错误

Javascript Sentry JS不会忽略全局错误,javascript,reactjs,sentry,Javascript,Reactjs,Sentry,我将@sentry/react与我的react/Redux应用程序一起用于下一个设置: Sentry.init({ ignoreErrors: [ "top.GLOBALS", "$ is not a function", "A.getAll is not a function.", "Cannot read property 'offsetWidth' of undefined"

我将
@sentry/react
与我的react/Redux应用程序一起用于下一个设置:

Sentry.init({
  ignoreErrors: [
    "top.GLOBALS",
    "$ is not a function",
    "A.getAll is not a function.",
    "Cannot read property 'offsetWidth' of undefined",
    "undefined is not an object (evaluating 'tiles[0].offsetWidth')",
  ],
  integrations: [
    new Sentry.Integrations.GlobalHandlers({
      onerror: false,
      onunhandledrejection: false,
    }),
  ],
  dsn:
    "https://*****.ingest.sentry.io/****",
});
然后我像这样包装我的应用程序:

    ReactDOM.render(
      <Sentry.ErrorBoundary>
        <Provider store={initializeStore()}>
          <StyleSheetManager target={styleContainer}>
            <App />
          </StyleSheetManager>
        </Provider>
      </Sentry.ErrorBoundary>,
      reactRoot
    );
ReactDOM.render(
,
反应根
);
由于我的应用程序安装在我的客户网站上,在我的应用程序之外的范围内总是会产生错误,正如你在配置中看到的那样,我试图忽略这些错误,以避免推高我的sentry订阅限制,但它并不真的起作用,我每个月都会收到200万个错误。除了在房屋内安装岗哨,我还能做什么