Element type is invalid: expected a string (for built-in components) or a class/function

报错:

Uncaught Error: 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

原因:

把   default  删掉。

猜你喜欢

转载自blog.csdn.net/qq_38719039/article/details/82424893
今日推荐