I am getting this error:
Uncaught Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/funct
I had the same issue and the issue was some js files were not included in the bundling of that specific page. Try including those file and problem might be fixed. I did this:
.Include("~/js/" + jsFolder + "/yourjsfile")
and it fixed up the issue for me.
This was while I was using React in Dot NEt MVC