Could not find required `intl` object. needs to exist in the component ancestry

For me it turned out that my ErrorBoundaries were out of scope IntlProvider

<Router>
    <SentryBoundary>
     <IntlProvider locale={this.state.lang} messages={localeData[this.state.lang]}>
        <Navbar lang={this.state.lang} changeLang={this.changeLang} />
        <div>
            <Route exact path="/" render={(props) => <Start{...props} />}/>
        </div>
     </IntlProvider>
    </SentryBoundary>
</Router>

All I had to do is just move Boundary INSIDE of IntlProvider

<Router>
  <IntlProvider locale={this.state.lang} messages={localeData[this.state.lang]}>
    <SentryBoundary>
        <Navbar lang={this.state.lang} changeLang={this.changeLang} />
        <div>
            <Route exact path="/" render={(props) => <Start{...props} />}/>
        </div>
    </SentryBoundary>
  </IntlProvider>
</Router>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)