最近遇到了这个错误:invariant.js?d8db:42 Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. Check the render method of `TableCell`.
后来发现是:
中<Divider type="vertical" /> 的问题
<Divider type="vertical" /> 代表了分界线,如下图所示:
最后将这个标签换成:<div className="ant-divider" />,如下图所示
问题就解决啦