react的Element type is invalid: expected a string (for built-in components)错误

BUG: 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.

img

看了许多答案,都说是组件引入错误,但是我检查了很多遍,并没有发现错误,下面是我的代码。

img

import TemplateCopy from './TemplateCopy';

img

import TemplateEdit from './TemplateEdit';

img

import {
    getCommonInfo,
    queryTemplateConfigList,
    zipDownTemplateConfig,
    deleteTemplateConfig
} from '../../services/post';

img

img

img

img

img
你可能忘记export component了。
或者有名字重复了。