我正在尝试在我的应用程序中实现stripe omniauth,但也使用google omniauth。两个gem都依赖gem omniauth,但在不同的版本中,有人知道如何解决它吗?
当我尝试捆绑时得到的错误:
Bundler could not find compatible versions for gem "omniauth":
In Gemfile:
omniauth-google-oauth2 (>= 1.0.0) was resolved to 1.0.0, which depends on
omniauth (~> 2.0)
omniauth-stripe-connect was resolved to 2.9.0, which depends on
omniauth (~> 1.0)发布于 2021-06-22 06:23:28
如果可以将omniauth-google-oauth2降级到0.8.2,它可以在我刚刚尝试的同一个Gemfile中使用omniauth-stripe-connect 2.10.1,并使其正常工作:
Using omniauth 1.9.1
Using omniauth-oauth2 1.7.1
Using omniauth-google-oauth2 0.8.2
Using omniauth-stripe-connect 2.10.1https://stackoverflow.com/questions/68009633
复制相似问题