vue less 踩坑 : loaderContext.getResolve is not a function
文章目录
先说结果:
yarn remove less-loader
yarn add less-loader@5.0.0过程:
照着官网配置
yarn add less less-loader --save- 添加:(关注路径)

- 报错了:

4.(解决)less-loader版本太高
所以要降低版本:
yarn remove less-loader // 移除过高版本
yarn add less-loader@5.0.0 // 添加新的(旧)版本
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论