Can this work with Blazor Server Side?
See original GitHub issueI added a Blazor Server Side version here:
But, I get this error that I just can’t seem to figure out?
System.NullReferenceException HResult=0x80004003 Message=Object reference not set to an instance of an object. Source=EventHorizon.Blazor.Interop StackTrace: at EventHorizon.Blazor.Interop.EventHorizonBlazorInterop.FuncClass[T](Func`2 classBuilder, Object[] args) at EventHorizon.Blazor.BabylonJS.Model.Canvas.GetElementById(String elementId) in C:\Users\webma\source\repos\ADefWebserver\EventHorizon.Blazor.TypeScript.Interop.Generator\Sample\BlazorServerApp\Model\Canvas.cs:line 12 at BlazorServerApp.Pages.Index.CreateScene() in C:\Users\webma\source\repos\ADefWebserver\EventHorizon.Blazor.TypeScript.Interop.Generator\Sample\BlazorServerApp\Pages\Index.razor:line 38 at BlazorServerApp.Pages.Index.OnAfterRender(Boolean firstRender) in C:\Users\webma\source\repos\ADefWebserver\EventHorizon.Blazor.TypeScript.Interop.Generator\Sample\BlazorServerApp\Pages\Index.razor:line 27 at Microsoft.AspNetCore.Components.ComponentBase.Microsoft.AspNetCore.Components.IHandleAfterRender.OnAfterRenderAsync() at Microsoft.AspNetCore.Components.Rendering.ComponentState.NotifyRenderCompletedAsync()
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (8 by maintainers)
Top GitHub Comments
Wow! Sooo sorry about that! I thought I was pointed to your main 😣😬😱 Ok, working now 😊
The recent code will need to be ported over to the Server Side. I am hoping it will be a direct port, since the server is all async/await.
I will keep you posted.