LoginSignup
1
0

More than 1 year has passed since last update.

Sass(TypeError: this.getOptions is not a function)

Posted at

エラー

TypeError: this.getOptions is not a function

環境

Node.js v16
nuxt.js v2.15
node-sass v5.0

nuxt.js 初期の設定で <style lang="scss"> を使おうとすると出る。

解決方法

sass-loaderのバージョンを下げる

npm install -D sass-loader@10.1.1
yarn add -D sass-loader@10.1.1

そもそも

node-sass が古いようで、みんな. sass(dart sass)使ってるらしい。

参考記事

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0