文章 2022-05-25 来自:开发者社区

Vue项目,安装less,less-loader,报错【TypeError: this.getOptions is not a function】解决办法

问题Vue项目,安装less和less-loader ,报错Syntax Error: TypeError: this.getOptions is not a function原因安装的less和less-loader版本可能是最新的,容易出现问题。所以推荐安装稳定版本解决办法安装指定版本npm install less@3.9.0 less-loader@4.1.0 -D // 这个可能是我当....

Vue项目,安装less,less-loader,报错【TypeError: this.getOptions is not a function】解决办法
文章 2022-05-19 来自:开发者社区

Vue报错 Module build failed: TypeError: this.getResolve is not a function at Object.解决办法

卸载当前版本 npm uninstall sass-loader 安装 npm install sass-loader@7.3.1 --save-dev

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

产品推荐

{"cardStyle":"productCardStyle","productCode":"aliyun","productCardInfo":{"productTitle":"快速部署 Dify 平台,高效搭建 AI 应用","productDescription":"Dify 作为企业级 LLM 应用开发引擎,能够有效解决 AI 应用开发周期长、技术门槛高的痛点。本方案基于阿里云容器服务 Kubernetes 版 ACK 打造云原生高可用架构,实现快速私有化部署,助力企业高效搭建 AI 应用。","productContentLink":"https://www.aliyun.com/solution/tech-solution/rapidly-deploy-dify-to-accelerate-ai-application-development","isDisplayProductIcon":true,"productButton1":{"productButtonText":"方案详情","productButtonLink":"https://www.aliyun.com/solution/tech-solution/rapidly-deploy-dify-to-accelerate-ai-application-development"},"productButton2":{"productButtonText":"方案部署","productButtonLink":"https://www.aliyun.com/solution/tech-solution-deploy/2870155.html"},"productButton3":{"productButtonText":"查看更多技术解决方案","productButtonLink":"https://www.aliyun.com/solution/tech-solution"},"productPromotionInfoBlock":[{"$id":"0","productPromotionGroupingTitle":"解决方案推荐","productPromotionInfoFirstText":"零门槛、即刻拥有 DeepSeek-R1 满血版","productPromotionInfoFirstLink":"https://www.aliyun.com/solution/tech-solution/deepseek-r1-for-platforms","productPromotionInfoSecondText":"即刻拥有 QwQ-32B,性能比肩全球最强开源推理模型","productPromotionInfoSecondLink":"https://www.aliyun.com/solution/tech-solution/qwq-for-platforms"}],"isOfficialLogo":false},"activityCardInfo":{"activityTitle":"","activityDescription":"","cardContentBackgroundMode":"LightMode","activityContentBackgroundImageLink":"","activityCardBottomInfoSelect":"activityPromotionInfoBlock"}}
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等