undefined method `invoke_with_build_args' for nil:NilClass
# This case use rails I switched ruby version from 2.3.3 to 2.6.3
# Step 1 - in your terminal run:
$ rvm list
=== Output ===
=* ruby-2.3.3 [ x86_64 ]
ruby-2.6.2 [ x86_64 ]
ruby-2.6.3 [ x86_64 ]
ruby-2.6.5 [ x86_64 ]
ruby-2.7.1 [ x86_64 ]
# => - current
# =* - current && default
# * - default
==============
# Step 2 - Choose the a higher version to use, or install a new version.
$ rvm use 2.6.2
Using /Users/me/.rvm/gems/ruby-2.6.2
# Step 3 - run bundle install
=== Output ===
Bundle complete! 16 Gemfile dependencies, 70 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
==============