JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

this.getOptions is not a function at Object.loader

发布时间 2023-09-29 10:51:11作者: 月豕

问题描述

VuePress使用有样式的组件时报错

this.getOptions is not a function     at Object.loader 

原因分析

是这个导致的

<style lang="scss">

你的依赖反应不了它就会报错

解决方案

需要安装sass-loader style-loader
sass-loader版本不能太高。。。安装@7的成功运行

    本栏目推荐文章
  • Center-based 3D Object Detection and Tracking
  • GIS融合之路(一)技术选型CesiumJS/loaders.gl/iTowns
  • 2024-01-13 Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. ==》引用了未使用的方法导致
  • [Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".
  • Learning Dynamic Query Combinations for Transformer-based Object** Detection and Segmentation论文阅读笔记
  • OOP语义学 第一章 关于对象(Object Lessons)
  • error: object StdIn is not a member of package io问题的解决
  • koa2 使用koa-body引入报错 koaBody is not a function
  • vue报错:Module parse failed: Unexpected token (5:2) You may need an appropriate loader to handle this file type.
  • About this page
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们