Closed asifsaho closed 5 months ago
Closing as the issue isn't vike(-react) related.
To fix this error, see https://vike.dev/broken-npm-package#react-invalid-component
Have you tried to follow the guide?
thanks for your quick answer, that link didn't help however I was able to solve it :)
Why didn't it help? How did you solve it?
I meant the instruction in the link wasn't for me. I don't know really how it was solved. I tried so many ways but wasn't able to solve it. Later I reset the environment and installed only two packages @emotion/styled
and @mui/material
. Now there is no error. SSR is also working as expected. I am still testing. I am trying hard to stay away form the Next JS. It is too slow!
I am trying to use Mui with Vike SSR mode however if I refresh I get a 500 error but the page works if I change the route from the button click. apparently, the error comes in SSR mode.