SharePoint Online : yo @microsoft/sharepoint issue for BaseDialog API

prithavi 0 Reputation points
2023-02-06T11:10:51.5533333+00:00

I developed sharepoint spfx extension for sharepoint online and created project through yeoman generator. From 2 years BaseDialog was showing properly and now sudden change from backend BaseDialog is showing abnormal behavior. It is working fine while opening the BaseDialog for the first time and disappearing for the second time. Due to this I am losing business with my client and trust in Microsoft cloud products.

Below the environment details. 
+-- Node 16.14
+-- @microsoft/generator-sharepoint@1.16.1
+-- generator-office@1.9.2
+-- gulp-cli@2.3.0
+-- msaddin@
+-- msaddins@
+-- yo@4.3.1   

   var dialog_1 = new CustomDialog();
          dialog_1.show().then(function () {
          });
       

 import { BaseDialog } from '@microsoft/sp-dialog';   
export default class CustomDialog  extends BaseDialog{
        public render(): void {  
            this.domElement.innerHTML=<h1> Hello World </h1>;
        }
    } 
    
Microsoft 365 and Office SharePoint Server For business
Microsoft 365 and Office Office Online Server
Microsoft 365 and Office SharePoint Development
Microsoft 365 and Office SharePoint For business Windows
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.