• Fchen
    2019-05-17
    这节课哪里是webpack的配置?
     2
     5
  • diyiduanfa
    2019-06-06
    老师,为什么我配置完按需加载后没有样式
     2
     3
  • 凌东冷月
    2019-05-25
    ERROR Failed to compile with 1 errors
     error in ./node_modules/ant-design-vue/dist/antd.less

    Module build failed (from ./node_modules/less-loader/dist/cjs.js):

    这是找不到这个文件的意思啊还是什么意思啊??已经安装了
    展开
     3
     3
  • 下一站幸福
    2019-06-27
    No PostCSS Config found in,完全按着老师的步骤安装的,一直包这个问题
    
     1
  • 张杰
    2019-04-27
    老师 ant-desing-vue 安装不上
    http fetch GET 404 https://registry.npmjs.org/ant-desing-vue
    
     1
  • developer_hsl
    2019-04-19
    老师的vscode的终端用的是什么?

    作者回复: Vscode 自带的 和你的系统有关

    
     1
  • gresen
    2020-01-07
    Antd is not defined

    作者回复: 目测配置了按需加载

    
    
  • 埼玉
    2019-11-02
    按需加载,样式没生效,最后全局引入样式表
    
    
  • 王鹏飞
    2019-09-12
    一个button 组件 要3.9M,我的天
    
    
  • 青山常有雾
    2019-09-05
    老师,按需加载,是引入了,但是加载这些 ,,,都有9M左右啊

    import {
        LocaleProvider,
        Table,
        Button,
        Input,
        Calendar,
        Carousel,
        Collapse,
        Modal,
        Form,
        Spin,
        Checkbox,
        Icon,
        Badge,
        Divider,
        Breadcrumb,
        Popconfirm,
        Tabs,
        Menu,
        TimePicker,
        Dropdown,
        InputNumber,
        Radio,
        Tooltip,
        Upload,
        Cascader,
        Tag,
        Pagination,
        Popover,
        DatePicker

    } from 'ant-design-vue'


    麻烦你指教 ant-design-vue cdn 怎么配置

    展开

    作者回复: Github 置顶issue 有一个优化方案

    
    
  • 青山常有雾
    2019-09-05
    1、ant-design-vue cdn是如何引入的,,,在里面的配置有是怎么配置?
    2、按需引入 ant-design-vue 其中字组件 相 a-input-search 不知道导那个包
    
    
  • 葛亮
    2019-08-04
    视频12分03秒,为什么复制上去的一串字符串最后直接变成了json对象,怎么实现的?

    作者回复: Vscode 保存自动格式化

    
    
  • 同同同
    2019-07-25
    npm i --save--dev babel-plugin-import
    npm WARN rollback Rolling back readable-stream@2.3.6 failed (this is probably harmless): EPERM: operation not permitted, rmdir 'F:\vsworspce\ant-desing-pro\node_modules\fsevents\node_modules'
    npm WARN @ant-design/icons-vue@1.0.1 requires a peer of @ant-design/icons@~1.1.0 but none is installed. You must install peer dependencies yourself.
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}
    展开
    
    
  • 飘渺云轩
    2019-07-15
    奇怪,我全局引入,app.js 只有 181B

    作者回复: ⊙∀⊙! 发生了什么

     3
    
  • Geek_Jason
    2019-06-28
    老师,我都按照你的老写代码,报这个错误:
    These dependencies were not found:

    * ant-design-vue/es/button in ./src/main.js
    * ant-design-vue/es/button/style in ./src/main.js

    To install them, you can run: npm install --save ant-design-vue/es/button ant-design-vue/es/button/style
    请老师帮忙看一下
    展开

    作者回复: 仅仅这个错误信息 我也没办法定位问题 你可以通过issue提个代码仓库上来

    
    
  • Barry.包
    2019-06-18
    老是帮我看看步骤和您的一样
    import { Button } from 'ant-design-vue';
    Vue.config.productionTip = false;
    Vue.use(Button);

     presets: ["@vue/app"],
      "plugins": [
        ["import", {
          "libraryName": "antd",
          "libraryDirectory": "es",
          "style": true // `style: true` 会加载 less 文件
        }]
      ]


     css: {
        loaderOptions: {
          less: {
            // 这里的选项会传递给 css-loader
            javascriptEnabled: true
          }
        }
      }

        "babel-plugin-import": "^1.12.0", 也添加了
    但app.js还是没有按需引入 还是12M
    展开

    作者回复: 光添加没用 还要配置 再看看目录中有个babel配置文件

    
    
  • Domdy
    2019-06-06
    老师,我在main.js中全局引用了ant-design-vue和样式,为什么在App.vue中没显示?
    
    
  • Giacomo
    2019-06-03
    老师麻烦问您个问题 就是我第二次启动项目的时候报错;
    问题是 No ESlint configuration found. 但是我已经配置了.eslintrc.js文件了而且找了好多解决方案都没有解决。 我在github给您提了这个issue (附带问题截图)麻烦你有空看一下帮我解决一下 谢谢啦
    
    
  • bolingboling
    2019-05-08
    ant-design-vue 官方文档文档是这么说的(https://vue.ant.design/docs/vue/use-with-vue-cli-cn/#%E4%BD%BF%E7%94%A8-vue-cli-3-%E7%9A%84%E5%B0%8F%E4%BC%99%E4%BC%B4)

    按下面的格式引入模块
    ```js
    import { Button } from 'ant-design-vue';
    Vue.component(Button.name, Button)
    ```

    这么做了之后会报错:

    ```bash
     ERROR Failed to compile with 1 errors 19:31:35
    This dependency was not found:
    * core-js/modules/es6.function.name in ./src/main.js
    To install it, you can run: npm install --save core-js/modules/es6.function.name
    ```

    然后把 `Vue.component(Button.name, Button)` 这块改为老师讲的 `Vue.use(Button)` 就没问题了

    这是怎么回事?
    展开

    作者回复: 按道理应该没有问题,可以在github上提个带有复现问题demo的issue

    
    
  • young
    2019-05-07
    老师,在创建项目的是候不是选中了babel了吗?为什么还需要用npm install --svae-dev babel-plugin-import

    作者回复: babel是babel,babel-plugin-import是babel-plugin-import,两个东西

    
    
我们在线,来聊聊吧