(sass): 26096 Как исправить ошибку 'Sass :: SyntaxError: Неверный CSS после' в Rails - PullRequest
0 голосов
/ 03 июля 2019

Я запускаю это в локальном

rake assets:precompile --trace RAILS_ENV=production

ruby: 2.6.3

rails: 5.2.2

Связка: 2.0.2

puma: 3.12.1

это мой css application.css

 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */
*= require font-awesome.css
*= require bootstrap.css
*= require font-awesome.css
*= require lineicons.css
*= require mystyles.css
*= require styles.css
*= require weather-icons.css

журнал ошибок

Sass::SyntaxError: Invalid CSS after "...ather-icons.css": expected "{", was ""
(sass):26096

я ожидаю, когда rake assets:precompile --trace RAILS_ENV=production будет успешно

1 Ответ

0 голосов
/ 04 июля 2019

Я думаю, что вы должны переименовать application.css в application.scss и удалить требуемое дерево и требовать self

...