webpack
陈吖
努力中~
展开
-
添加版权的Plugin报错
前提:已经导入const webpack=require('webpack') 解决方法:查查变量名,一般变量名写错了!原创 2022-04-11 20:33:49 · 192 阅读 · 0 评论 -
安装less报错:Module build failed: TypeError: this.getOptions is not a function 解决方法
创建vue项目中,用到less、sass等css预编译处理语言是很常见的方式,在安装过程中肯定会遇到各类的问题,如:Module build failed: TypeError: loaderContext.getResolve is not a function 那么关于该问题,我们要如何处理呢? 原因分析:less版本过高 解决方法:换低版本。 版本卸载:npm uninstall less-loader 安装指定版本:npm install [email protected] --save原创 2022-04-09 21:24:06 · 2111 阅读 · 0 评论 -
npm install --save-dev less-loader less 报错
npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/webpack npm ERR! peer webpack@"^5.0.0" from [email protected] npm ERR! node_modules/les..原创 2022-04-09 21:00:55 · 1893 阅读 · 0 评论