antd Table 组件报错

最近遇到了这个错误: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`.

后来发现是:

antd Table 组件报错_第1张图片

的问题

代表了分界线,如下图所示:

最后将这个标签换成:

,如下图所示

antd Table 组件报错_第2张图片

问题就解决啦

你可能感兴趣的:(前端)