Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.0.1-alpha.4] - snackbars not work #400

Closed
kkaplita opened this issue Jun 29, 2021 · 1 comment
Closed

[2.0.1-alpha.4] - snackbars not work #400

kkaplita opened this issue Jun 29, 2021 · 1 comment

Comments

@kkaplita
Copy link

Expected Behavior

Snackbar should appear.

Current Behavior

When i use with enqueueSnackbar i have Uncaught TypeError: Cannot read property 'props' of undefined

Steps to Reproduce

  1. Install version 2.0.1-alpha.4
  2. Use SnackbarProvider
  3. Use enqueueSnackbar('message')

Context

I am using material-ui 5.0.0-alpha.38

Your Environment

Tech Version
Notistack v2.0.1-alpha.4
React 17.0.2
Browser Latest Google Chrome
@iamhosseindhv
Copy link
Owner

iamhosseindhv commented Jul 14, 2021

I am using material-ui 5.0.0-alpha.38

You should use next and not alpha. Alpha is v2 and still a work in progress. We also have #393 to fix this same issue. I appreciate they're easy to mis take.

next is what people should use if they're using MUI v5. Also you need to wait for #387 to get merged first if you're using MUI > 5.0.0-alpha.34. Otherwise if you're using <= 5.0.0-alpha.34, simply do npm i notistack@next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants