报错截图
组件页面展示正常,控制台报错
index.js:1 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.
Check the render method of BoundDialogBox
.
in BoundDialogBox
报错定位
排查了整个BoundDialogBox
组件,最终定位在自己封装的Tab
组件,只有两个地方使用了这个组件,另一个组件正常显示。而在BoundDialogBox
使用时报错