Could not find 'sfBlazor' in 'window' in Nuget 18.3.0.35
Hello,
I have read my problem should be solved at early versions. But currently, i have the same exception in my blazor webassembly.
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 https://localhost:5001/_framework/blazor.webassembly.js:1:9130
at Array.forEach (<anonymous>)
at p (https://localhost:5001/_framework/blazor.webassembly.js:1:9090)
at https://localhost:5001/_framework/blazor.webassembly.js:1:9800
at new Promise (<anonymous>)
at Object.beginInvokeJSFromDotNet (https://localhost:5001/_framework/blazor.webassembly.js:1:9773)
at _mono_wasm_invoke_js_marshalled (https://localhost:5001/_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 https://localhost:5001/_framework/blazor.webassembly.js:1:9130
at Array.forEach (<anonymous>)
at p (https://localhost:5001/_framework/blazor.webassembly.js:1:9090)
at https://localhost:5001/_framework/blazor.webassembly.js:1:9800
at new Promise (<anonymous>)
at Object.beginInvokeJSFromDotNet (https://localhost:5001/_framework/blazor.webassembly.js:1:9773)
at _mono_wasm_invoke_js_marshalled (https://localhost:5001/_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 () <0x44d20b8 + 0x00034> in <filename unknown>:0
at Syncfusion.Blazor.BarcodeGenerator.QRBarcode.drawDisplayText (System.Double x, System.Double y, System.Double width, System.Double height, Microsoft.JSInterop.IJSRuntime JSRuntime, Syncfusion.Blazor.BarcodeGenerator.SfQRCodeGenerator sfQRCodeGenerator) <0x449d980 + 0x001de> in <filename unknown>:0
at Syncfusion.Blazor.BarcodeGenerator.QRBarcode.Draw (Syncfusion.Blazor.BarcodeGenerator.SfQRCodeGenerator sfQRCodeGenerator, Microsoft.JSInterop.IJSRuntime JSRuntime) <0x444fd38 + 0x0044c> in <filename unknown>:0
at Syncfusion.Blazor.BarcodeGenerator.SfQRCodeGenerator.OnAfterRenderAsync (System.Boolean firstRender) <0x441a3f0 + 0x001d4> in <filename unknown>:0
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask (System.Threading.Tasks.Task taskToHandle) <0x4157e78 + 0x000b6> in <filename unknown>:0
I have add licence key and added the service with "builder.Services.AddSyncfusionBlazor();"
Is this allways a bug or what could be wrong?
Best regards
Jonas
SIGN IN To post a reply.
3 Replies
1 reply marked as answer
AR
Aravind Ravi
Syncfusion Team
October 5, 2020 12:44 PM UTC
Hi Jonas,
We are unable to reproduce the reported issue at our end. When we render barcode in web assembly app in latest version(18.3.35), the barcode has been rendered properly. We does not face any console exceptions.
So could you please share us a code snippet of how you use barcode in your sample or simple sample replicating issue. This would help us to serve you better.
Regards
Aravind Ravi
BD
Bob Dunaway
October 8, 2020 08:52 PM UTC
I'm having the same problem too. I think it is related to a DropDown control because that was the only breaking change that affected me.

My code was working until I upgraded to 18.3.0.38 so it must be related.
AR
Aravind Ravi
Syncfusion Team
October 9, 2020 12:12 PM UTC
Hi Bob,
We are unable to reproduce the reported issue at our end. We suspect that old nuget cache does not cleared in your sample and old nuget has been still referred in the sample. So before install new nuget , delete the old nuget cache and install new nuget in your sample. Please use below command to clear the old nuget
|
dotnet nuget locals all -clear |
In case if the issue still persists, please share us more details of your requirement i.e. when you try to render barcode inside as template of other component facing an exception or while you press dropdown component you face an console exception of blazor of undefined issue or please share us a simple sample illustrating issue. This would help us to serve you better.
Regards
Aravind Ravi
Marked as answer
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
- Marked answer
-
JR Jonas Rodenkirch
- Oct 2, 2020 07:25 AM UTC
- Oct 9, 2020 12:12 PM UTC