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)
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)'
I really sorry that I took You time this way.
Seems like I've missed this part.
Thank You Buvana S !
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?
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?
Regards,
Buvana S