I am trying to show stage picklist values of opportunity object through lwc but iit shows error Invalid reference Opportunity.Stage of type sobjectField in file lwcPicklistOppor.js
here is my code
<template>
<div class="side-box">
<template if:true={StageValues.data}>
<lightning-combobox value={value} label="Opportunity Stage" onchange={handleChange} options={stageValues.data.values}
name="progress"> </lightning-combobox>
</template>
</div>
</template>
import { LightningElement,wire } from 'lwc';
import OPPORTUNITY_OBJECT from '@salesforce/schema/Opportunity';
import { getPicklistValues } from 'lightning/uiObjectInfoapi';
import Stage from '@salesforce/schema/Opportunity.Stage';
import { getObjectInfo } from 'lightning/uiObjectInfoapi';
export default class LwcPicklistOppor extends LightningElement {
@wire(getObjectInfo, { objectApiName : Opportunity_OBJECT})
opportunityinfo;
@wire(getPicklistValues,
{
recordTypeId: '$opportunityinfo.data.defaultRecordTypeId',
fieldApiName: Stage
}
)
StageValues;
}