必须使用与spree商务网站其余部分相同的布局来创建静态页面。 Spree_static_content是我尝试使用的gem。但是,在bundle安装上收到以下错误。
Bundler could not find compatible versions for gem "spree_core":
In snapshot (Gemfile.lock):
spree_core (= 3.3.1)
In Gemfile:
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree (~> 3.3.0) was resolved to 3.3.1, which depends on
spree_core (= 3.3.1)
spree_gateway (~> 3.3) was resolved to 3.3.0, which depends on
spree_core (< 4.0, >= 3.1.0)
spree_gateway (~> 3.3) was resolved to 3.3.0, which depends on
spree_core (< 4.0, >= 3.1.0)
spree_static_content was resolved to 3.0.1, which depends on
spree_core (~> 3.0.0)
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
答案 0 :(得分:0)
找到解决方案这个问题是因为使用Rails 5依赖gem globalize。将以下内容添加到您的Gemfile中:
gem 'globalize', git: 'https://github.com/globalize/globalize'
gem 'activemodel-serializers-xml'
接下来,bundle install
您将在问题中解决上述错误。