Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

less

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 *-@:.#
like image 941
José Manuel Lucas Avatar asked Feb 26 '23 11:02

José Manuel Lucas


1 Answers

@import "/subdirectory/file.less";

You seem to be missing the semi-colon?

like image 73
Myles Gray Avatar answered Mar 29 '23 03:03

Myles Gray