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
时间: 2023-05-02 20:03:45 浏览: 143
这是一个组件类型无效的错误,在引入组件时,期望得到一个字符串(对于内置组件)或一个类/函数(对于组合组件),但是得到的是未定义的。可能是因为你忘记了从定义组件的文件中导出组件,或者混淆了默认导出和命名导出。
阅读全文