VUE Module build failed: TypeError: this.getOptions is not a function at Object.loader 解决办法
背景:在VUE中安装了 npm install node-sass sass-loader --save-dev,然后启动就报错了,看提示是因为依赖的问题
查了一下 node-sass sass-loader 是会有冲突的
Module build failed: TypeError: this.getOptions is not a function
at Object.loader (D:\testwork\Testgadget\frontend\node_modules\sass-loader\dist\index.js:25:24)
npm uninstall sass-loader
npm install sass-loader@7.3.1
npm uninstall node-sass
npm install node-sass@4.14.1
npm run serve
这样就可以正常启动了
VUE Module build failed: TypeError: this.getOptions is not a function at Object.loader 解决办法相关推荐
- Module build failed: TypeError: this.getOptions is not a function at Object.loader
问题描述 测试webpack相关功能时出现这个Module build failed: TypeError: this.getOptions is not a function at Object.l ...
- Vue项目 Module build failed: TypeError: this.getResolve is not a function at Object.loader……
由于还用不惯 webpack 4,特别是采用了vue-cli3 搭建的项目,由于还没搞懂在这种环境中自己手动调整配置(vue-cli3 简化了配置,原来很多的配置都集成到vue-cli3内部,不需要在 ...
- 安装node-sass运行报错 Module build failed: TypeError: this.getResolve is not a function at Object.loader
在搭建vue脚手架 或者是在vue项目中,想使用sass的功能, npm install node-sass --save-dev //安装node-sass npm install sass-loa ...
- Error: Module build failed: TypeError: this.getResolve is not a function at Object.loader
错误原因:这是因为当前sass的版本太高,webpack编译时出现了错误,只需要换成低版本的就行. 找到package.json文件,里面的 "sass-loader"的版本更换掉 ...
- 安装scss后报错Module build failed: TypeError: loaderContext.getResolve is not a function解决方法
scss安装后,报如下错误: Module build failed: TypeError: loaderContext.getResolve is not a functionat getWebpa ...
- Module build failed: TypeError: Cannot read property 'vue' of undefined
2019独角兽企业重金招聘Python工程师标准>>> 在使用VUE CLI 3.x开发项目,一启动就报一下错误: Module build failed: TypeError: C ...
- TypeError: this.getOptions is not a function at Object.lessLoader
问题描述: 当前找不到 lessLoader, 原因: 默认的vue ui 帮我们创建的项目并没有去安装less相关的loader,如果想要使用less相关的语法,那么必须先配置好less相关的loa ...
- this.getOptions is not a function at Object.loader
报错原因: 这种报错很有可能是版本不兼容导致的,可能是 css-loader.less-loader.style-loader等版本不兼容. 解决方法: 进入github的webpack地址:Gith ...
- Module build failed (from ./node_modules/less-loader/dist/cjs.js):TypeError: this.getOptions is not
(./node_modules/css-loader/dist/cjs.js??ref–11-oneOf-1-1!./node_modules/vue-loader/lib/loaders/style ...
最新文章
- 关于DELLR710/R910(rhel5.3-5.5) Broadcom netxtreme 5709网卡间歇性的停止接收数据包的问题解决方案...
- 【实战经验分享】一劳永逸的解决网线随意热插拔问题
- optee的fast call的介绍
- Mysql的timestamp与datetime
- 【转】Linux 静态库与共享库的使用
- div模拟select/option解决兼容性问题及增加可拓展性
- SQL过滤字符后手工注入漏洞测试(第1题)
- [模板] 线筛欧拉函数
- 每日算法系列【LeetCode 239】滑动窗口最大值
- 应用程序到偏好设置跳转 以及 应用程序之间的跳转
- Linux三剑客--grep
- One账户多设备同步的数据库设计
- vb6.0动态加载odbc驱动(mysql数据源)_vb教程之在VB中动态加载ODBC数据源
- leggedrobotics free gait 足式机器人自由步态 苏黎世机器人系统实验室
- 714. 买卖股票的最佳时机含手续费
- 吐血整理公众号推文制作技巧
- 积木拼图游戏-儿童游戏免费拼图3-6岁
- 在 html 中用加色法混合颜色,加色混合是()的混合
- 我知道你不知道,我到底知不知道?
- 策略评价1:根据交易信号Signal,1.提取交易记录,2.绝对收益和相对收益,3.交易与不交易对比,4.收盘价最大回撤,5.资金最大回撤。6.可视化图形回测。