Question

I want to import some vars and mixings from a less file located under a subdirectory.

I´m using the following code:

@import "./subdirectory/file.less"

I have tried:

@import "subdirectory/file.less"

But the compiler shows the following error:

!Syntax Error: on line 3: expected one of @import *-@:.#
Was it helpful?

Solution

@import "/subdirectory/file.less";

You seem to be missing the semi-colon?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top