rails 4.1.7 红宝石2.1.4
使用bootstrap-sass 3.3.1.0 gem
当我尝试推送到Heroku时,我收到以下错误:
$ git push heroku master
...
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
I, [2014-11-21T01:06:34.863128 #1054] INFO -- : Writing /tmp/build_5e094815d056adf463e7c75e987d5e63/public/assets/glyphicons-halflings-regular-3ba17edd9d971727ac7482518167c417.eot
I, [2014-11-21T01:06:34.865429 #1054] INFO -- : Writing /tmp/build_5e094815d056adf463e7c75e987d5e63/public/assets/glyphicons-halflings-regular-9fdfa71474063341410181a0580f8cc9.svg
I, [2014-11-21T01:06:34.867462 #1054] INFO -- : Writing /tmp/build_5e094815d056adf463e7c75e987d5e63/public/assets/glyphicons-halflings-regular-b1be6b5ab502863bf4997057c9e81c47.ttf
I, [2014-11-21T01:06:34.869377 #1054] INFO -- : Writing /tmp/build_5e094815d056adf463e7c75e987d5e63/public/assets/glyphicons-halflings-regular-d1bdcb334cbe33c43cd1644d34c214bc.woff
I, [2014-11-21T01:06:39.656791 #1054] INFO -- : Writing /tmp/build_5e094815d056adf463e7c75e987d5e63/public/assets/application-16641e09fe68375d82a616882c87cd48.js
rake aborted!
ExecJS::ProgramError: /bootstrap-theme.css.map:1:14: Unknown word
...
在我的config / application.rb文件中,我有:
require File.expand_path('../boot', __FILE__)
require 'rails/all'
Bundler.require(*Rails.groups)
module Evolution
class Application < Rails::Application
config.assets.initialize_on_precompile = false
end
end
知道如何修复此错误吗?
更新#1
如果我在App目录中搜索“bootstrap-theme”这个词,我会发现:
两个文件中的4个匹配项:
/Users/andreucasadella/rails_projects/evolution/app/assets/stylesheets/bootstrap-theme.css:
468 box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05), 0 1px 0 rgba(255, 255, 255, .1);
469 }
470: /*# sourceMappingURL=bootstrap-theme.css.map */
和
/Users/andreucasadella/rails_projects/evolution/app/assets/stylesheets/bootstrap-theme.css.map:
1: {"version":3,"sources":["less/theme.less","less/mixins/vendor-prefixes.less","bootstrap-theme.css","less/mixins/gradients.less","less/mixins/reset-filter.less"],"names":...
据我所知,“未知单词”位于文件/bootstrap-theme.css.map和第1:14行。
如何识别空间14?
答案 0 :(得分:0)
我无法找到答案,因此我决定删除这两个地图文件: - bootstrap-theme.css.map - bootstrap.css.map
我无法在DevTools Sources面板中实时编辑我的预处理器源文件,但至少我可以继续。希望尽快找到更好的答案。