react - Ant Design Pro 报错Warning: React.createElement: type is invalid – expected a string (for buil

报错问题

在react+ant design pro项目开发中,浏览器控制台出现报错:Warning: React.createElement: 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.解决办法。

只要我们的报错信息一致就可以解决掉。

在这里插入图片描述

解决办法

其实,

你可能感兴趣的:(前端常见问题解决,前端组件与功能(开箱即用),react,ant,design,pro,创建全局组件时报错怎么解决,组件引入导出报错,解决浏览器控制台出现一片报错,React.createEle,type,is,invalid)