iamhosseindhv / notistack

Highly customizable notification snackbars (toasts) that can be stacked on top of each other
https://notistack.com
Other
3.9k stars 299 forks source link

Does Notistack Work With Next 13.4 / React 18.2 / SSR? #565

Closed oalexdoda closed 1 year ago

oalexdoda commented 1 year ago

Trying to upgrade a large codebase to Next 13.4 / React 18.2. Using Notistack 3.0.1 and MUI. For some reason, whenever an enqueueSnackbar is called, it throws this error:

image

image

Anybody got this issue before and has some intel on how to fix it? Tried use client; but won't work.

arunmmanoharan commented 1 year ago

I have the same issue. Looking for a fix.

iamhosseindhv commented 1 year ago

Hi both - I'm only able to help if you provide a minimal codesandbox reproduction.

iamhosseindhv commented 1 year ago

Closing due to inactivity

anku255 commented 1 year ago

@iamhosseindhv I am getting the exact same error on Next.js 13.4.19 and react 18.2.0.

I tried reproducing it in a codesandbox. I don't get an error there but it doesn't work either. Calling enqueueSnackbar does nothing.

Link to codesandbox