猿问

使用antdesign的babel-plugin-import,怎么配置?

1、这是文件夹中的文件

2、package.json 中的配置
https://img4.mukewang.com/5c2726380001dab203830504.jpg

3、运用npm install 将加载了node_modules中的文件

https://img4.mukewang.com/5c272643000107b610520399.jpg

4、运行的入口代码(npm run dev 启动服务)

https://img4.mukewang.com/5c27264b0001b8b804830507.jpg

5、浏览器报错信息(访问:localhost:8000/index.html)

https://img1.mukewang.com/5c27265900017fc812130416.jpg

index.html

https://img.mukewang.com/5c2726620001166403350181.jpg

问题:
1、Note: must use https://github.com/ant-design... .
For more information, please see https://github.com/ant-design... 
这个报错怎么解决呢?

2、arning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components). Check the render method of WingBlankExample.
这样子的报错,是什么原因呢?应该怎么来处理?
请大神给出解答,感激不尽。


慕姐8265434
浏览 2029回答 1
1回答
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答