• Shivani Tanwar 6
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 0
    Replies
I am trying to show stage picklist values of opportunity object through lwc but iit shows error unlnown exception when i deploy code to org

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 OPPORTUNITY_OBJECT from '@salesforce/schema/Opportunity';
import { getPicklistValues } from 'lightning/uiObjectInfoapi';
import Stage from '@salesforce/schema/Opportunity.StageName';
import { getObjectInfo } from 'lightning/uiObjectInfoapi';
import { wire } from 'lwc';
export default class LwcPicklistOppor extends LightningElement {
    @wire(getObjectInfo, { objectApiName : Opportunity_OBJECT})
    opportunityinfo;
    @wire(getPicklistValues,
        {
            recordTypeId: '$opportunityinfo.data.defaultRecordTypeId',
            fieldApiName: Stage
        }
    )
    StageValues;
}
 
i am trying to view component locally in vs code but when i run sfdx plugins:install @salesforce/lwc-dev-server this command i get error

C:\HelloWorldLightningWebComponen>sfdx plugins:install @salesforce/lwc-dev-server

Error: connect ETIMEDOUT 199.232.45.145:443
Code: ETIMEDOUT
how to rectify this??plz help me out