It’s not finding my @import’ed files.
If I use //=require on them it won’t keep track of the variables I’m defining in other files so @import is the only option.
I’ve even tried using the full physical path like @import “/Users//Sites/project/stylesheets/test.less”; and it still cannot find the file.
They are in the same directory…
It seems there’s a weird issue with Sprockets + LESS.
I’m not using RAILS, just a basic rack server with sprockets…
Less::ParseError: 'activity.less' wasn't found. (in /Users/rountrjf/Sites/ce-platform/app/assets/stylesheets/app.less)
Anyone know how I can resolve this?
A quick fix I found was give the relative path of the file in import
eg:
It worked for me.
Update: proper soultion which I found was :
use this sprockets-less gem
works like a charm no relative path required
check my example here