Failed to resolve loader: less-loader
Posted htsky
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failed to resolve loader: less-loader相关的知识,希望对你有一定的参考价值。
ERROR Failed to compile with 2 errors 15:32:41 Failed to resolve loader: less-loader You may need to install it. Failed to resolve loader: less-loader You may need to install it.
原文连接 https://vue.ant.design/docs/vue/use-with-vue-cli-cn/
按照这个连接的描述,出现上述提示的错误。
折腾了将近一天,发现修改 babel.config.js 的 style 属性为 css 后不报错了。我的vue版本为 3.7.0
{ libraryName: "ant-design-vue" ,libraryDirectory: "es", style: "css" }
暂时没有发现有没有其他关联错误。
以上是关于Failed to resolve loader: less-loader的主要内容,如果未能解决你的问题,请参考以下文章
Failed to resolve loader: script-loader You may need to install it.
Failed to resolve loader: script-loader You may need to install it.
15. Failed to resolve: junit:junit:4.12,Failed to resolve: javax.inject:javax.inject:1......