There is an error coming back from my build, saying:
Error: A React Element from an older version of React was rendered. This is not supported. It can happen if:
- Multiple copies of the "react" package is used.
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
- A compiler tries to "inline" JSX instead of using the runtime.
The above error occurred in the <TitanToastProvider> component.
When I open the TitanToastProvider I see my very simple wrapper for notistack 3.0.2:
import { ReactNode } from "react";
import { SnackbarProvider } from "notistack";
function TitanToastProvider({ children }: { children: ReactNode }) {
return (
<SnackbarProvider
maxSnack={3}
autoHideDuration={5000}
>
{children}
</SnackbarProvider>
);
}
export { TitanToastProvider };
Commenting out the TitanToastProvider from my app causes it to render just fine. Is there a React 19 compatibility issue that is known?
Expected Behavior
React 19 compat
Current Behavior
Errors
| Tech |
Version |
| Notistack |
v3.0.2 |
| React |
v19 |
There is an error coming back from my build, saying:
When I open the
TitanToastProviderI see my very simple wrapper for notistack3.0.2:Commenting out the
TitanToastProviderfrom my app causes it to render just fine. Is there a React 19 compatibility issue that is known?Expected Behavior
React 19 compat
Current Behavior
Errors