I am creating a lightning-record-form component to display records from Account Object: This is the js file:
import { LightningElement } from 'lwc';
import Account_Name from '@Salesforce/schema/Account.Name';
import Account_Type from '@Salesforce/schema/Account.Type';
import Account_Industry from '@Salesforce/schema/Account.Industry';
export default class AccountCreateSampleComp extends LightningElement {
objectApiName='Account';
fieldList=[Account_Name,Account_Type,Account_Industry];
handleAccountCreate(event){
}
}
This is the template/html file:
<template>
<lightning-record-form object-api-name={objectApiName} fields={fieldList} onsuccess={handleAccountCreate}></lightning-record-form>
</template>
I have attached the screenshot of the message received when I try to deploy