Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/21.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 警告:React.createElement:使用ant design下拉列表时类型无效_Reactjs_Ecmascript 6_Antd - Fatal编程技术网

Reactjs 警告:React.createElement:使用ant design下拉列表时类型无效

Reactjs 警告:React.createElement:使用ant design下拉列表时类型无效,reactjs,ecmascript-6,antd,Reactjs,Ecmascript 6,Antd,我在使用某个ant设计组件时遇到了一个问题:下拉列表 源代码是用ES6编写的,并使用Babel进行了良好的编译。 加载页面时,会引发以下错误,并且不会呈现页面: Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the re

我在使用某个ant设计组件时遇到了一个问题:下拉列表

源代码是用ES6编写的,并使用Babel进行了良好的编译。 加载页面时,会引发以下错误,并且不会呈现页面:

Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. Check the render method of `Dropdown`.
    in Dropdown (created by Dropdown)
    in Dropdown (created by DashboardTemplate)
    in div (created by Col)
    ...
我正在使用本文中列出的代码,这些代码已经很好地工作了,但是由于一些包被更新了,所以无法工作。由于依赖项的依赖项仍然被更新为较新的版本,我无法在降级所有包的情况下复制工作版本。我也无法在Codepen示例中重现该问题

是ant设计组件,按照ant设计文档中的说明使用

有什么线索可以导致这个错误吗

Webpack用作捆绑程序,安装的软件包版本为:

$ npm ls antd react react-router react-dom prop-types webpack
E:\dashboard
+-- antd@2.11.2
+-- laravel-elixir-webpack-official@1.0.10
| +-- webpack@2.1.0-beta.22
| `-- webpack-stream@3.2.0 (git://github.com/jeroennoten/webpack-stream.git#d78a3568e259f9cdbc64c60290639af6ef6d3baf)
|   `-- webpack@1.15.0
+-- prop-types@15.5.10
+-- react@15.6.1
+-- react-dom@15.6.1
+-- react-icons@2.2.5
| `-- react-icon-base@2.0.7
|   `-- prop-types@15.5.8
+-- react-router@3.0.5
`-- webpack@2.6.1
谢谢