Git Product home page Git Product logo

Comments (6)

NishantUpadhyay-BTC avatar NishantUpadhyay-BTC commented on June 7, 2024 2

Remove all content from main css manifest file stylesheets/application.scss and just write
@import 'lines/application' in it. This works for me now. Remove require_tree and require_self .

from lines-engine.

npmachine avatar npmachine commented on June 7, 2024

The rails default application.css tried to load entire scss files in assets/stylesheets/lines folder based on *= require_tree . while stylesheet/lines/application.scss(lines default stylesheet) has responsibility to load other scss files.

So, changing rails default application.css like this would solve the problem:

*= lines/application
* require_tree .
* require_self

from lines-engine.

NishantUpadhyay-BTC avatar NishantUpadhyay-BTC commented on June 7, 2024

Here is how I fix this issue,

I imported module of variables in each file wherever I was facing that error.
@import 'variables_and_mixins'; add this line to all your css files which are using those variables in css like article.scss, footer.scss, general.scss etc...

from lines-engine.

thej avatar thej commented on June 7, 2024

Mixing SASS @import with sprockets' //require will not work out of the box. You could also try to remove sprockets syntax from your master stylesheet and replace it with SASS @import syntax.
There's also the sprockets-sass gem that could solve the issue.
I'll adress this in one of the future releases of lines.

from lines-engine.

edgarlepe avatar edgarlepe commented on June 7, 2024

Just removing the line

 *= require_tree .

should be fix the issue. So you're left with something like:

 *= require lines/application
 *= require_self

from lines-engine.

stvauyeung avatar stvauyeung commented on June 7, 2024

I was able to resolve the issue in my Rails 5 app by moving 'assets/stylesheets/lines' to 'vendor/lines' and adding *= vendor/lines/application to the application.css file.

from lines-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.