salesforcedx-vscode icon indicating copy to clipboard operation
salesforcedx-vscode copied to clipboard

expectedcss error on "style" attribute in .html

Open savage25 opened this issue 2 years ago • 4 comments

Summary

Getting an error on using identifier for a style attribute

Steps To Reproduce:

<td style={hdr.style}>

Expected result

There should not be an error message / warning. The code is valid (works when deployed).

Actual result

Getting the following errors & warnings (at style={...})

  • } expectedcss(css-rcurlyexpected)
  • at-rule or selector expectedcss(css-ruleorselectorexpected)
  • Do not use empty rulesetscss(emptyRules)

Additional information

Screenshot 2022-05-12 092055

Salesforce Extension Version in VS Code: v54.11.0

SFDX CLI Version: sfdx-cli/7.148.3 win32-x64 node-v16.14.2

OS and version: Version: 1.67.1 (system setup) Commit: da15b6fd3ef856477bf6f4fb29ba1b7af717770d Date: 2022-05-06T12:37:03.389Z Electron: 17.4.1 Chromium: 98.0.4758.141 Node.js: 16.13.0 V8: 9.8.177.13-electron.0 OS: Windows_NT x64 10.0.19043

savage25 avatar May 12 '22 13:05 savage25

Hi @savage25, thanks for submitting the issue. I am able to repro and confirmed that this is a bug.

klewis-sfdc avatar May 25 '22 18:05 klewis-sfdc

This issue has been linked to a new work item: W-11203509

uip-robot-zz avatar May 25 '22 18:05 uip-robot-zz

+1 on this

codysechelski avatar Aug 12 '22 16:08 codysechelski

any update for this?

ennoucas avatar Jul 15 '23 09:07 ennoucas