Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error "property value expected css" and "at-rule or selector expected css" editing Go template in VSCode

I'm using Go and package html/template. This is my code in mypage.tmpl:

<div class="col-sm-1">
        <i class='fas fa-square companies-color' style="color: {{.Company.Color}}"></i>
</div>

But I get errors in VSCode:

property value expected css(css-property value expected)

and

at-rule or selector expected css(css-rule selector expected)

when I try {{ }} in style html.

screen shot of VSCode error messages

like image 998
Nam Lê Quý Avatar asked Aug 05 '19 04:08

Nam Lê Quý


2 Answers

I have found solution. Turn off html validate styles in setting's vscode

vscode disable validate style html

like image 123
Nam Lê Quý Avatar answered Nov 04 '22 21:11

Nam Lê Quý


Hi I fixed this this by installing the Django extension in VsCode

like image 7
Alexandre Angrignon Avatar answered Nov 04 '22 21:11

Alexandre Angrignon