Best practices about Ruby bundle and Gemfile
It is not easy to maintain that Gemfile has too much content. Recoommand to modular Gemfile by split the single Gemfile file to mulitple Gemfile files.
First, split Gemfile content into mulitiple files prefix with Gemfile(such as Gemfile-base, Gemfile.base, etc.) according to your need, recommand by classification or usage.
Then, replace Gemfile with these code:
Bundler: You must use Bundler 2 or greater with this lockfile
The issue was with gemfile.lock because our local bundle version and project bundle version was not matching!
You must upgrade gem ‘bundler’ to 2.2.8+.
gem update --system
 Rails 5 Routing Cookbook: 10 recipes for the novice Rails developer and beyond | by Rui Freitas | Light the Fuse and Run | Medium- https://medium.com/lightthefuse/rails-5-routes-cookbook-10-recipes-for-the-novice-rails-developer-and-beyond-9986f43064bc
 ruby on rails - Bundler: You must use Bundler 2 or greater with this lockfile - Stack Overflow - https://stackoverflow.com/questions/53231667/bundler-you-must-use-bundler-2-or-greater-with-this-lockfile