1

Rails 3.2にアップグレードした後、このエラーが発生しますrake assets:precompile

Invalid CSS after "*": expected "{", was "html .fileinput..."

ここにトレースがあります:http://paste.ubuntu.com/1285319/

application.cssほとんどデフォルトです:

/*
 * This is a manifest file that'll automatically include all the stylesheets available in this directory
 * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
 * the top of the compiled file, but it's generally better to create a new file per style scope.
 *= require_self 
 *= require_tree . 
*/

明らかにCSSのコメントが気に入らないのですが、SASSやRailsに気づかなかった変更がありましたか?

sassのバージョンは次のとおりです。

sass (3.2.1)
sass-rails (3.2.5)
  railties (~> 3.2.0)
  sass (>= 3.1.10)
  tilt (~> 1.3)
4

1 に答える 1

1

エラーはjquery.fileupload-ui.css(jQueryファイルアップロードUIプラグインCSS 6.3)のこの行が原因で発生しました

/* Fix for IE 6: */
*html .fileinput-button {
  line-height: 22px;
  margin: 1px -3px 0 0;
}
于 2012-10-17T18:21:34.593 に答える