Closed JuanRuiz-erebror closed 6 years ago
Hi there, MDB React is only about to turn SSR-compatible. Until then please make sure to include the necessitated code in componentDidMount
lifecycle method or go for some handy tricks.
@JStrebeyko Yes, I checked that mdbreact only works in client side, so it is not very compatible with NextJs unless I want to dynamically load it (only client side).
Actually, I use reactstrap combined with mdb styles, but this is not a full solution. I hope it turns ssr compatible soon!
Thanks.
Make sure you don't miss out!
It outputs the same error using Electrode.io from Walmart Labs
I assume that this issue can be closed. We will inform you if we will make some changes in ssr direction.
Best, Jakub
I'm trying to use mdbreact in a existig project with NextJs. This is the code:
And this is the error that is showing:
I've installed from 2 wayes:
I will have made a mistake? Nobody uses yet mdbreact with NextJs? I think something happends in server side rendering. I'm not sure.
Thanks