twbs / bootstrap-sass

Official Sass port of Bootstrap 2 and 3.
http://getbootstrap.com/css/#sass
MIT License
12.59k stars 3.53k forks source link

Rails precompile fails on test/dummy_node_mincer/application.css.ejs.scss #1196

Closed pvenky closed 5 years ago

pvenky commented 5 years ago

We are switching one of our projects from using bower to using yarn instead. In dev mode, everything works and looks as expected. However, when building on our staging server, the assets:precompile step is breaking on the file node_modules/@bower_components/bootstrap-sass/test/dummy_node_mincer/application.css.ejs.scss. I cannot seem to find anyone else that is having this specific issue. Version information below:

Here are the relevant portions of the build output (the line "Processing..." comes from a modification I made to the sprockets code - without it, I couldn't isolate which file was breaking):

Processing bootstrap-sass/test/dummy_node_mincer/application.css//var/www/XXXXX/releases/20190402181604/node_modules/@bower_components/bootstrap-sass/test/dummy_node_mincer/application.css.ejs.scss
rake aborted!
Sass::SyntaxError: Invalid CSS after "...(__p,arguments)": expected "{", was ";};with(obj||{}..."
(sass):1
/var/www/cloudlm/shared/bundle/ruby/2.5.0/gems/sass-3.5.6/lib/sass/scss/parser.rb:1278:in 'expected'
/var/www/cloudlm/shared/bundle/ruby/2.5.0/gems/sass-3.5.6/lib/sass/scss/parser.rb:1208:in 'expected'

Everything was working when we were using bower, and we've made minimal changes to other files during the transition process.

glebm commented 5 years ago

You shouldn't be trying to compile this file, it's part of the internal tests for bootstrap-sass.

If you can't figure out why your app is trying to compile it, you can try StackOverflow.