Got the Exception during installing the gem file with ruby version 3.0.0

Got the following Exception during installing gem file with ruby version 3.0.0

ruby -v
ruby 3.0.0p0

bundle version 
Bundler version 2.2.4 (2020-12-31 commit 529e536f28)

Got following Exception:

gem install test.gem
ERROR:  While executing gem ... (NoMethodError)
    undefined method `satisfied_by?' for nil:NilClass

same gem install working fine with ruby version 2.6.0