这是由于安装node-sass:"5.0.0"版本问题,引起的错误,语法与4.的版本不同 解决办法:安装4版本的sass
解决: 卸载当前sass-loader,安装低版本的。(本人安装了10.0.0后正常) npm uninstall sass-loader npm install--save-devsass-loader@10.0.0
vue 使用scss报错 this.getOptions is not a function 通过npm安装sass npm install node-sass npm intall sass-loader 上面命令安装的是最新版的,出现错误的原因就是安装最新版的导致不兼容 解决方案就是卸载sass-loader以及node-sass,安装低版本,命令如下 npm uninstall sass-loader//卸载 npm install sass-loader...
但是在webpack配置scss有错误: error in ./src/App.vue?vue&type=style&index=0&id=7ba5bd90&scoped=true&lang=scss& Syntax Error: TypeError: this.getOptions is not a function 另外我自己百度的vue.config.js配置成这样: module.exports = {// ...
本文介绍Vue集成scss时的报错的解决方法。 报错信息为:Syntax Error: TypeError: this.getOptions is not a function 问题复现 创建Vue项目并整合Scss的过程见:Vue--整合Scss--使用/实例_IT利刃出鞘的博客 创建完后各个版本为: node.js:v14.15.3 node-sass:7.0.1 ...
1. error in ./src/styles/element-variables.scss Syntax Error: TypeError: this.getOptions is not a function 发现在上一个报错时 把package.json中的所有依赖更新到了最新版这次的报错就是因为这个原因将sass-loader remove之后 重新安装到10版本就行了 npm remove sass-loader npm i sass-loader@10.1.1 ...
vue + ts + scss main.ts引入scss文件报错 this.getOptions is not a functionts版本3.9.7,vue 2.6 原因...
4、在main.js里面引入即可 import'./assets/main.scss' 5、如果<style lang=“scss“>报错TypeError: this.getOptions is not a function at Object.loader 和sass-loader的版本冲突问题,重新卸载安装
i getting TypeError: this.getOptions is not a function please help to solve this –Krishna Jangid Commented Aug 4, 2021 at 5:36 1 @KrishnaJangid check this answer: stackoverflow.com/a/66087132/2043718 ... also watch out for the version of css-loader and style.loader. You need to...
...参考文档: vuejs-templates 官方文档 vue 配置 sass、scss 全局变量 TypeError: this.getOptions is not a function webpack-simple 1K20 vue引入js文件并使用_css引入js 1.处理js文件,注意格式,一定要export,否则获取到的为null 2.在Vue中引入js import allinfo from “../../../.../static/js/all...