Getting this error after including element-react
import {Menu} from 'element-react';
import 'element-theme-default';

Looks like the element-react lib does not support server-side rendering.
How to render a component on client-side only? #186
This is really common trouble with client side components only. You should ask your package vendor for solution.
If package rely on client side features, you can create a wrap for it and make different code paths for server and client.
Best advice is to avoid libraries which cannot support ssr.
Most helpful comment
Looks like the
element-reactlib does not support server-side rendering.How to render a component on client-side only? #186