You need to sign in to do that
Don't have an account?

I'm getting this error please help. Unable to build Lightning Component source for markup://c:HelloWorldLightningWebComponent: Invalid suffix: json.
I tried deleting the only component which I had earlier deployed, I created a new project and tried deploying this but got this error and was unable to find the solution even after googling. Please help me someone so that I can proceed with learning
Can you share the code with all the files so experts suggest and can help you on it.
Thanks,
<template>
<lightning-card title="HelloWorld" icon-name="custom:custom14">
<div class="slds-m-around_medium">
<p>Hello, {greeting}!</p>
<lightning-input label="Name" value={greeting} onchange={changeHandler}></lightning-input>
</div>
</lightning-card>
</template>
JS File
import { LightningElement } from 'lwc';
export default class HelloWorld extends LightningElement {
greeting = 'World';
changeHandler(event) {
this.greeting = event.target.value;
}
}
MetaXML
<?xml version="1.0" encoding="UTF-8"?>
<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="helloWorld">
<apiVersion>52.0</apiVersion>
<isExposed>true</isExposed>
<targets>
<target>lightning__AppPage</target>
<target>lightning__RecordPage</target>
<target>lightning__HomePage</target>
</targets>
</LightningComponentBundle>