-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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
Uncaught TypeError: _prefix.replace is not a function #11942
Comments
@celinrayen Your issue has been closed because it does not conform to our issue requirements. |
@oliviertassinari https://codesandbox.io/s/y2lk2nl4l1 is the replicated code snippet. |
Thanks. The fix is as simple as: -NotificationBar.displayName = NotificationBar;
+NotificationBar.displayName = 'NotificationBar'; I'm adding a warning in the core about it. |
@oliviertassinari Thanks a lot! Thats my bad. It's time to revisit my ESLINT rules :) |
The
withStyles
is not working when used withSnackbar
.I'm trying this with the below versions.
withStyles
works perfectly fine in another component which wraps theButton
. But while usingSnackbar
i receive the below issue.The same piece of code works fine if I return an empty object in the
style
. Am I missing anything?The text was updated successfully, but these errors were encountered: