使用vue 2 ant 很多坑。

  1. npm run serve 不起来,卡住,多半是业务vue文件,teamplate包住一个标签才是对的,如下:

    <teamplate><div></div></teamplate>

    错误的是如下<teamplate><div></div><div></div></teamplate>  第一个坑

  2. https://pro.antdv.com/docs/getting-started  看清楚前端框架是用ant-vue-pro

  3. https://blog.csdn.net/qq_42786011/article/details/123895927 设置镜像仓库

  4. https://blog.csdn.net/wsmrzx/article/details/115769223  安装Ant Design 

  5. 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报这样错误,求助

回复复制链接举报黄涛14天前

注释掉 /src/components/NumberInfo/NumberInfo.vue文件内的 style @会装系统的程序员 "index";

5.https://blog.csdn.net/iamxuqianqian/article/details/114935443   Antd is not defined 解决办法

 

posted @ 2022-07-30 10:35  CaptainBruke  阅读(451)  评论(0)    收藏  举报