使用vue 2 ant 很多坑。
-
npm run serve 不起来,卡住,多半是业务vue文件,teamplate包住一个标签才是对的,如下:
<teamplate><div></div></teamplate>
错误的是如下<teamplate><div></div><div></div></teamplate> 第一个坑
-
https://pro.antdv.com/docs/getting-started 看清楚前端框架是用ant-vue-pro
-
https://blog.csdn.net/qq_42786011/article/details/123895927 设置镜像仓库
-
https://blog.csdn.net/wsmrzx/article/details/115769223 安装Ant Design
-
https://gitee.com/sendya/ant-design-pro-vue/ ant-vue-pro是有bug,看评论,要注释点东西 第二个坑
error in ./src/components/NumberInfo/NumberInfo.vue?vue&type=style&index=0&id=4370c5af&lang=less&scoped=true&
Syntax Error: TypeError: Cannot set property 'parent' of undefined
下载之后run报这样错误,求助
注释掉 /src/components/NumberInfo/NumberInfo.vue文件内的 style @会装系统的程序员 "index";
5.https://blog.csdn.net/iamxuqianqian/article/details/114935443 Antd is not defined 解决办法