How to resolve the error - at rule or selector expected?
HTML->
{property.City__c}
{property.Beds__c}-{property.Bath__c}
{property.Price__c}
JS->
import { LightningElement,api } from 'lwc'; export default class LwcPropertyTile extends LightningElement { @api property; get backgroundImageStyle() { return `background-image:url(${this.property.Thumbnail__c})`; } }
To resolve the error - at rule or selector expected -
As I don't see an import statement in the JS file. Add below in the first line of js
import { LightningElement, api} from 'lwc';
If that doesn't solve, turn off the HTML > Validate:Styles in the VS code settings.