Uncaught Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function but got: object

前端 未结 30 1504
孤城傲影
孤城傲影 2020-11-22 06:53

I am getting this error:

Uncaught Error: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/funct

30条回答
  •  深忆病人
    2020-11-22 07:49

    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

提交回复
热议问题