首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Spree_static_content gem不使用spree 3.3.x

Spree_static_content gem不使用spree 3.3.x
EN

Stack Overflow用户
提问于 2017-11-11 11:21:14
回答 1查看 131关注 0票数 0

必须创建静态页面使用相同布局的其余疯狂商业网站。Spree_static_content是我尝试使用的宝石。但是,在bundle安装时会出现以下错误。

代码语言:javascript
运行
复制
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.
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-11-11 15:27:37

找到了此问题的解决方案,这是因为Rails 5依赖于gem全球化。将以下内容添加到Gemfile中:

代码语言:javascript
运行
复制
gem 'globalize', git: 'https://github.com/globalize/globalize'
gem 'activemodel-serializers-xml'

接下来,bundle install和您将对上述问题中的错误进行网络处理.

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47237335

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档