LoginSignup
1
0

More than 1 year has passed since last update.

TypeError: this.getOprions is not a functionでエラーが出た時の対処法

Last updated at Posted at 2021-07-27

既存のrailsアプリケーションにReact_on_railsを導入するとscssが効かなくなり、詰まったのでこの記事を書きました。

解決法

sass-loaderのバージョンを12.1.0から10に変更

詰まった原因

package.json上でsass-loaderのバージョンを10に変更していたのですが、
yarn upgrade を実行するとsass-loaderが最新の12.1.0に置き換わっていました。
package.json上でsass-loaderを変更するのではなく、コマンドで
yarn upgrade sass-loader@10 を実行するとエラーが消えました!

参考記事

1
0
0

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