Comments (6)
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.
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.
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.
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.
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.
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)
- jQuery UI assets missing in production HOT 2
- Initial setup is broken HOT 1
- Error after running migrations HOT 1
- undefined method `helper` for ActionController::API:Class HOT 1
- Help Installing HOT 3
- Failed to upload painting: Article must exist HOT 8
- Sass::SyntaxError in Lines::Articles#index HOT 1
- Unmaintained? Use my fork HOT 3
- Sitemap generator not working
- when executing "rails g lines:install": undefined method 'assets' HOT 1
- Articles missing at /blog/index.html when deploying to Heroku HOT 2
- Missing required option :name when trying to use S3 for storage. HOT 2
- After install, when trying to create a new article I get this error.
- Broken images HOT 4
- Commenting HOT 1
- Rails 6 Support HOT 1
- Proposal: Upgrade to rails 6 + authentication scheme
- can't figure out how to get route.rb to work with development environment HOT 1
- Still being maintained? HOT 1
- Update to show that this is no longer maintained
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lines-engine.