Syntax error: on line 3: one of @import * - @: is expected. #

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

I am using the following code:

@import "./subdirectory/file.less" 

I tried:

 @import "subdirectory/file.less" 

But the compiler shows the following error:

 !Syntax Error: on line 3: expected one of @import * -@ :.# 
+4
source share
1 answer

@import "/subdirectory/file.less";

It seems you are missing a half-colony?

+8
source

Source: https://habr.com/ru/post/1334388/


All Articles