react-alert icon indicating copy to clipboard operation
react-alert copied to clipboard

TypeError: Cannot read properties of undefined (reading 'current')

Open CrazyFish159 opened this issue 4 years ago • 7 comments

i am just trying to make an alert and i get this error: image image can any one help me?

CrazyFish159 avatar Oct 20 '21 18:10 CrazyFish159

Even i am Stuck with this. Any possible fixes??

77Siddharth avatar Oct 29 '21 20:10 77Siddharth

Me too got stuck here -_-

AriaFantom avatar Dec 02 '21 19:12 AriaFantom

Stucked here

hemmadx avatar Mar 16 '22 08:03 hemmadx

Was this issue in v6 or before?

DugarRishab avatar Apr 16 '22 09:04 DugarRishab

@schiehll please take a look into this issue

DugarRishab avatar Apr 16 '22 09:04 DugarRishab

Maybe You didn't define current I do too stuck here.

wajahatmasood avatar Aug 29 '22 18:08 wajahatmasood

It seems to be where you've added the Provider, you should add it above everything. Example:


ReactDOM.render(
  <Provider template={AlertTemplate} {...AlertOptions} >
    <ReduxProvider store={store}>
      <PersistGate loading={null} persistor={persistor}>
        <ThemeProvider theme={theme}>
          <CssBaseline />
          <BrowserRouter >
            <Switch>
              <Route path="/app" render={(props) => <AdminLayout {...props} />} />
              <Redirect from="/" to="/app/start" />
            </Switch>
          </BrowserRouter>
        </ThemeProvider>
      </PersistGate>
    </ReduxProvider>
  </Provider>

gonzaaalo avatar Feb 11 '23 21:02 gonzaaalo