Hi ,
I have developed custom PCF Control in Typescript . I have used some React JS code to open React-Modal as popup window in Control Button Click.
This custom PCF Control is running fine when i am running it locally i.e from Visual Studio code. But when i deployed PCF Control to my Dynamics 365 environment.
And tried to access control in CRM Form then getting below error show in screenshot.
i did some analysis and found that when i remove Modal tsx file from my PCF Control then this error is not coming .
So below is my piece of code i wrote it down to call my Modal component. Basically passing one parameter to Modal Component.