1,Minified React error #130
官方解释:Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
链接:https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]=
原因:一般是createElement创建dom实例报错了,创建的组件返回了undefined,也就是说组件里面存在不能编译成功的元素
踩坑例子:本地的antd组件包,使用的是antd3版本,其中使用了Icon元素,在本地编译没问题,放到线上后给项目使用时,由于项目使用的是antd4,所以导致上述报错