Error : Could not find 'sfBlazor' in 'window' ( blazor in webassembly )
Hello
I just installed the Syncfusion.Blazor package on my project and configured everything according to the documentation
But I get an error when I try to use components on the console it writes Could not find 'sfBlazor' in 'window'.
I use Syncfusion.Blazor v18.1.0.54 and Blazor Webassembly 3.2.0
blazor.webassembly.js:1 crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Could not find 'sfBlazor' in 'window'.
Error: Could not find 'sfBlazor' in 'window'.
at http://localhost:58111/_framework/blazor.webassembly.js:1:9198
at Array.forEach (<anonymous>)
at p (http://localhost:58111/_framework/blazor.webassembly.js:1:9158)
at http://localhost:58111/_framework/blazor.webassembly.js:1:9868
at new Promise (<anonymous>)
at Object.beginInvokeJSFromDotNet (http://localhost:58111/_framework/blazor.webassembly.js:1:9841)
at _mono_wasm_invoke_js_marshalled (http://localhost:58111/_framework/wasm/dotnet.3.2.0.js:1:171294)
at do_icall (<anonymous>:wasm-function[6049]:0x10f8b1)
at do_icall_wrapper (<anonymous>:wasm-function[1896]:0x50b6a)
at interp_exec_method (<anonymous>:wasm-function[1120]:0x2588e)
Microsoft.JSInterop.JSException: Could not find 'sfBlazor' in 'window'.
Error: Could not find 'sfBlazor' in 'window'.
at http://localhost:58111/_framework/blazor.webassembly.js:1:9198
at Array.forEach (<anonymous>)
at p (http://localhost:58111/_framework/blazor.webassembly.js:1:9158)
at http://localhost:58111/_framework/blazor.webassembly.js:1:9868
at new Promise (<anonymous>)
at Object.beginInvokeJSFromDotNet (http://localhost:58111/_framework/blazor.webassembly.js:1:9841)
at _mono_wasm_invoke_js_marshalled (http://localhost:58111/_framework/wasm/dotnet.3.2.0.js:1:171294)
at do_icall (<anonymous>:wasm-function[6049]:0x10f8b1)
at do_icall_wrapper (<anonymous>:wasm-function[1896]:0x50b6a)
at interp_exec_method (<anonymous>:wasm-function[1120]:0x2588e)
at System.Threading.Tasks.ValueTask`1[TResult].get_Result () <0x453cfa8 + 0x00034> in <filename unknown>:0
at Syncfusion.Blazor.Internal.ResourceManager.SetCulture () <0x3dfe0e8 + 0x00102> in <filename unknown>:0
at Syncfusion.Blazor.Internal.ResourceManager.OnInitializedAsync () <0x3dfd600 + 0x000e2> in <filename unknown>:0
at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync () <0x395a678 + 0x0013a> in <filename unknown>:0
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask (System.Threading.Tasks.Task taskToHandle) <0x3e0b580 + 0x000b6> in <filename unknown>:0
SIGN IN To post a reply.
12 Replies
WN
Waldemar Nowak
May 29, 2020 06:09 AM UTC
AZ
Azamkhon
May 29, 2020 12:07 PM UTC
Thanks for the link :)
But that did not work for me!
It seems we need to wait until the next update.
As far as I understand, they still partially use JavaScript?
JA
Jesus Arockia Sankaran S
Syncfusion Team
May 29, 2020 01:36 PM UTC
Hi Azamkhon,
Sorry for the inconvenience caused.
We have checked the reported issue and we are not able to reproduce it after we follow the workaround provided in another forum. We have prepared a sample and video for your reference that you can download from the below location.
We also want to inform you that the fix for this issue will be available with our upcoming patch release scheduled in June 2, 2020 release.
Please get back to us if you need any further assistance on this.
Regards,
Jesus Arockia Sankaran S
AZ
Azamkhon
May 30, 2020 06:30 AM UTC
thanks for the answer
We will wait until June 2 :)
EK
Edward Kagan
May 31, 2020 05:52 PM UTC
The "workaround" still leaves a lot of cases of exceptions related to SfBlazor, etc. The only solution is to roll back to 18.1.53 and pretend this disaster of a release never happened.
JA
Jesus Arockia Sankaran S
Syncfusion Team
June 1, 2020 11:25 AM UTC
Hi Edward,
We are extremely for the inconvenience caused.
We want to inform you that this reported issue will be fixed with our upcoming patch release scheduled on June 2, 2020.
Regards,
Jesus Arockia Sankaran S
JA
Jesus Arockia Sankaran S
Syncfusion Team
June 2, 2020 11:02 AM UTC
Hi Azamkhon,
Thank you for waiting for our response.
We are glad to inform you that the reported issue is fixed with our latest patch release version 18.1.0.55.
Please get back to us if you need any further assistance on this.
Regards,
Jesus Arockia Sankaran S
JA
Jesus Arockia Sankaran S
Syncfusion Team
June 2, 2020 11:05 AM UTC
Hi Edward,
We request you to check with latest patch release version 18.1.0.55 and the fix for the reported issue is included in it.
Please get back to us if you need any further assistance on this.
Regards,
Jesus Arockia Sankaran S
SW
Stephen Wileman
August 11, 2020 04:09 PM UTC
Hello,
I logged a similar issue with SfChart earlier today. Within Startup.cs I changed the ConfigureServices method to use
services.AddSyncfusionBlazor();
instead of
services.AddSyncfusionBlazor(true);
This resolved the issue for me.
Thanks,
Steve
JA
Jesus Arockia Sankaran S
Syncfusion Team
August 12, 2020 09:33 AM UTC
Hi Stephen,
Sorry for the inconvenience caused.
We have checked the reported issue and we are not able to reproduce it in our end. We want to inform you that by default “services.AddSyncfusionBlazor()” will load the required script files automatically from the NuGet package installed location so there is no need to explicitly include the script reference in head section of “_Host.cshtml”.
On the other hand, we use “services.AddSyncfusionBlazor(true)” to load script file either from CDN or local location. We have checked both the scenarios but we are not able to reproduce the issue. We have prepared samples for your reference in both scenario that you can get from the below links.
Sample with services.AddSyncfusionBlazor(): https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorSync08121680439915
Sample with services.AddSyncfusionBlazor(true): https://www.syncfusion.com/downloads/support/directtrac/general/ze/BlazorSync08121357898582
We request you to modify the above sample to reproduce the issue in our end for clear understanding in case we misunderstood your point.
Please get back to us if you need any further assistance on this.
Regards,
Jesus Arockia Sankaran S
DA
Dan
July 1, 2021 03:31 AM UTC
I believe this is back on the June 29th 2021 release
JL
Joshna Lingala Uthama Reddy Lingala
Syncfusion Team
July 7, 2021 10:53 AM UTC
Hi Dan,
Greetings from syncfusion.
We have created a new incident under your Direct trac account to follow up this query. We would like to suggest you to follow up with that incident for further updates. Please login using below link
Please get back to us if you have any queries.
Regards,
Joshna L
SIGN IN To post a reply.
- 12 Replies
- 7 Participants
-
AZ Azamkhon
- May 28, 2020 11:06 AM UTC
- Jul 7, 2021 10:53 AM UTC