function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chikkuchikku 

Lightning Web Component - Navigation - View option is not working

I have created Navigation to achieve the related list in Subtab in lwc it throws an error while clicking the Navigation. I Have updated the code This was an error my facing it while clicking the view navigation.User-added image
const actions = [
    { label: 'View', name: 'view' },
    { label: 'Edit', name: 'edit' },
];
 
const columns = [   
   
 { label: 'Sort Code', fieldName: 'Sort_Code__c' },
 {label:'Account Number', fieldName:'Account_Number__c'},
    {
        type: 'action',
        typeAttributes: { rowActions: actions },
    }, 
];
        },
        handleRowActions( event ) {

        const actionName = event.detail.action.name;
        const row = event.detail.row;
        switch ( actionName ) {
            case 'view':
                this[NavigationMixin.Navigate]({
                    type: 'standard__recordPage',
                    attributes: {
                        recordId: row.Id,
                        actionName: 'view'
                    }
                });
                break;
            case 'edit':
                this[NavigationMixin.Navigate]({
                    type: 'standard__recordPage',
                    attributes: {
                        recordId: row.Id,
                        objectApiName: 'Bank_Account__c',
                        actionName: 'edit'
                    }
                });
                break;
            default:
        }

    }

 
AbhishekAbhishek (Salesforce Developers) 
With the Error ID I have seen our server logs and find this,


org.auraframework.impl.controller.AuraClientException: [NoErrorObjectAvailable] Script error.

And found many users reported this issue.

To get the exact answer Ii would request you to raise a case with the Salesforce support team So that our team will look further in server logs and assist you.

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Regards,
Salesforce Support.