Ant Design Pro 奇怪错误Check the render method of `TableList`.(JavaScript版)

Posted シ゛甜虾

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Ant Design Pro 奇怪错误Check the render method of `TableList`.(JavaScript版)相关的知识,希望对你有一定的参考价值。

Something went wrong.

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, or you might have mixed up default and named imports. Check the render method of `TableList`.

 原因竟然是import { ProTable } from '@ant-design/pro-table';多加了个括号,删掉括号改成

import ProTable from '@ant-design/pro-table';就好了

以上是关于Ant Design Pro 奇怪错误Check the render method of `TableList`.(JavaScript版)的主要内容,如果未能解决你的问题,请参考以下文章

ant-design-pro 动态菜单-路由详解

ant design pro 当中改变ant design 组件的样式和 数据管理

安装 ant design pro

ant-design-pro 之 Login 组件

Ant Design Pro V5 初体验(typescript版)

002-ant design pro 布局