Today I faced the same problem: Providing bundle exec your team can solve this problem.
bundle exec
Providing the exec package did not help (I already did this).
spring stop and spring reboot did not help.
I need to do: spring batch update this works for me.
is there a better fix for using the spring version in the previous gemlock file?
I delete gemfile.lock and run bundle , which usually clears things up.
gemfile.lock
bundle
Otherwise, just remove the gem "spring" from the Gemfile and run bundle
gem "spring"
Gemfile
In my case, I fixed this problem by running this command
bundle update spring
In my case, I did not use the new spring version anywhere, so running gem uninstall spring and choosing the option to remove version 1.3.6 solved my problem. Thus, I did not have to change the Gemfile.lock file.
spring
gem uninstall spring
1.3.6
Gemfile.lock