'I want to use mailcatcher for confirmable in devise gem but get this when i am runing bundle install?

Can anyone help me with this i am using rails 7.0.2.3

Bundler could not find compatible versions for gem "rack":
  In snapshot (Gemfile.lock):
    rack (= 2.2.3)
  In Gemfile:
    rails (~> 7.0.2, >= 7.0.2.3) was resolved to 7.0.2.3, which depends on
      actionpack (= 7.0.2.3) was resolved to 7.0.2.3, which depends on
        rack (~> 2.0, >= 2.2.0)
    mailcatcher (~> 0.8.2) was resolved to 0.8.2, which depends on
      rack (~> 1.5)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source