Skip to content

在cli4中,按需引入后报错 Failed to resolve loader: less-loader #2894

@zhaozhe0831

Description

@zhaozhe0831
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6

Environment

vue 2.6

Reproduction link

Edit on CodeSandbox

Steps to reproduce

使用vue-cli 4 建立项目,安装 ant-design-vue,按需加载,无法正常引入

What is expected?

可以正常使用

What is actually happening?

不能正常使用

这个问题之前有人提过,已经持续很久了

安装 less-loader 后,报错如下

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions