A weird error after update to 19.4

Hello dear support. I'm trying the 19.4 today, after update from 19.3, and I start getting multiple reports on this error
:Exception thrown: 'Microsoft.JSInterop.JSException' in System.Private.CoreLib.dll

this.element.querySelector is not a function

TypeError: this.element.querySelector is not a function

    at t.render (https://localhost:44354/_content/Syncfusion.Blazor.Popups/scripts/sf-dialog-7eb9d3.min.js:1:3221)

    at t.initialize (https://localhost:44354/_content/Syncfusion.Blazor.Popups/scripts/sf-dialog-7eb9d3.min.js:1:2266)

    at new t (https://localhost:44354/_content/Syncfusion.Blazor.Popups/scripts/sf-dialog-7eb9d3.min.js:1:2101)

    at Object.initialize (https://localhost:44354/_content/Syncfusion.Blazor.Popups/scripts/sf-dialog-7eb9d3.min.js:1:20905)

    at https://localhost:44354/_framework/blazor.server.js:1:3501

    at new Promise (<anonymous>)

    at Tt.beginInvokeJSFromDotNet (https://localhost:44354/_framework/blazor.server.js:1:3475)

    at https://localhost:44354/_framework/blazor.server.js:1:71773

    at Array.forEach (<anonymous>)

    at Tt._invokeClientMethod (https://localhost:44354/_framework/blazor.server.js:1:71759)


7 Replies 1 reply marked as answer

BS Buvana Sathasivam Syncfusion Team February 14, 2022 11:19 AM UTC

Hi Yordan, 

Greetings from Syncfusion support. 
We were unable to reproduce your reported problem. We have created a sample based on the Dialog component with a 19.4.0.50 version. Please find the below sample. 


Could you please share the below information? 
  • Share your code or runnable sample or modify the above sample to check your issue.
  • Share the video to better understand your issue.
  • Share your installed Nuget package details.
 
Regards, 
Buvana S 



YO Yordan February 14, 2022 05:19 PM UTC

But... It is there.

I just opened You sample with Visual Studio, and run it without any kind of modifications, and the exception popped up:TypeError: Cannot read properties of undefined (reading 'show')

    at Object.show (https://localhost:7009/_content/Syncfusion.Blazor/scripts/sf-dialog-5df2c7.min.js:1:21719)

    at https://localhost:7009/_framework/blazor.server.js:1:3501

    at new Promise (<anonymous>)

    at Tt.beginInvokeJSFromDotNet (https://localhost:7009/_framework/blazor.server.js:1:3475)

    at https://localhost:7009/_framework/blazor.server.js:1:71773

    at Array.forEach (<anonymous>)

    at Tt._invokeClientMethod (https://localhost:7009/_framework/blazor.server.js:1:71759)

    at Tt._processIncomingData (https://localhost:7009/_framework/blazor.server.js:1:69801)

    at bt.Tt.connection.onreceive (https://localhost:7009/_framework/blazor.server.js:1:64201)

    at WebSocket.o.onmessage (https://localhost:7009/_framework/blazor.server.js:1:48517)'



BS Buvana Sathasivam Syncfusion Team February 15, 2022 05:54 PM UTC

Hi Yordan, 

We were unable to reproduce your reported problem at our end. Can you please find the below video for your reference? 


We suspect that you have enabled the IgnoreScriptIsolation set to true in the Program.cs file. So, you need to properly reference the script file like below. 

If you still have an issue, could you please share the below, 
  • Please share the video with your issue for better understanding.
  • Did you manage to open the Blazor Dialog component?
  • Have you used .NET 6 or .NET 5?
 
Regards, 
Buvana S 


Marked as answer

YO Yordan February 16, 2022 01:49 AM UTC

I really sorry that I took You time this way.

Seems like I've missed this part.

Thank You  Buvana S !



BS Buvana Sathasivam Syncfusion Team February 16, 2022 06:34 AM UTC

Hi Yordan, 

Thank you for your update. Please let us know if you have any concerns. 

Regards, 
Buvana S 



JC Jonah Coleman May 18, 2022 06:23 PM UTC

I also am getting this- I do not have EnableScriptIsolation set to true:


I get a few different exceptions, all from the above mentioned dll:



I believe I have properly brought in the script:


This is a .NET Core 3.1 app, currently porting to .NET 6 where I also see the same exceptions.


Any ideas on where to look?



BS Buvana Sathasivam Syncfusion Team May 20, 2022 04:13 AM UTC

Hi Jonah,


We were unable to reproduce your problem at our end. In below sample, we have created a simple sample using .net core 3.1 with a SfDialog component and converted it into .net 6. Please find the below video and sample for your reference.

Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/V_5202022_0937372088487951


Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/Net3-1103090867


Documentation: https://blazor.syncfusion.com/documentation/getting-started/blazor-server-side-visual-studio#register-syncfusion-blazor-service


Can you please share the below information?

  • Share your code or runnable sample to check your reported problem.
  • Which Syncfusion components have you used?
  • Share the video with your issue for better understanding.


Regards,

Buvana S


Loader.
Up arrow icon