简体   繁体   English

Spree Commerce Bootstrap前端安装失败

[英]Spree Commerce Bootstrap Frontend installation fails

I'm trying to install spree_boostrap_frontend (I've tried both with 2-2-stable and master) on my spree 2.2.1 and I get the following error when I try to load the web site: 我试图在spree 2.2.1上安装spree_boostrap_frontend(我已经尝试过2-2-stable和master),在尝试加载网站时出现以下错误:

couldn't find file 'spree/frontend/spree_bootstrap' (in /home/vagrant/mystore/vendor/assets/javascripts/spree/frontend/all.js:13) 找不到文件“ spree / frontend / spree_bootstrap”(在/home/vagrant/mystore/vendor/assets/javascripts/spree/frontend/all.js:13中)

Extracted source (around line #10): 提取的来源(第10行附近):

   <%= favicon_link_tag image_path('favicon.ico') %>
   <%= stylesheet_link_tag 'spree/frontend/all', :media => 'screen' %>
   <%= csrf_meta_tags %>
   **<%= javascript_include_tag 'spree/frontend/all' %>**
   <!--[if lt IE 9]>
     <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.6/html5shiv.min.js"></script>
   <![endif]-->

(**) line #10 is the one between the double * (**)第10行是双*之间的那一行*

Any idea on how to solve it? 关于如何解决的任何想法? I also tried to uninstall the gem but the problem still persists (probably I've installed in the wrong way? I've just commented the corresponding line in the Gemfile and then re-ran bundle install) 我还尝试卸载了gem,但问题仍然存在(可能是我安装的方式有误?我只是在Gemfile中注释了相应的行,然后重新运行了bundle install)

Delete these lines: 删除这些行:

//= require spree/frontend/spree_bootstrap

from vendor/assets/javascripts/spree/frontend/all.css 来自vendor/assets/javascripts/spree/frontend/all.css

*= require spree/frontend/spree_bootstrap

from vendor/assets/stylesheet/spree/frontend/all.js vendor/assets/stylesheet/spree/frontend/all.js

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM