2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.という警告

Posted at

railsコマンドを実行するたびに下記の警告文が出てきます。

# rails db:migrate
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.

ここではこの警告を出なくさせる方法を書いていきます。

参考:https://github.com/rubygems/rubygems/issues/5234

解決策

どうやらbundlerのversionを変えると出てこなくなるみたいです。

参考記事によると
Also, just to make sure there's an easy way out of this posted here, running

bundle _2.3.3_ update --bundler

と書いてあるので、今のversionを確認してupdateしてみます。

# bundle -v
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Bundler version 2.2.15
# bundle _2.3.3_ update --bundler

結果

無事に警告が表示されなくなりました!

2
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
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?