Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled exception rendering component: Cannot set properties of null (setting 'innerHTML') #135

Open
HuaFangYun opened this issue Apr 3, 2024 · 3 comments

Comments

@HuaFangYun
Copy link
Contributor

warn: Microsoft.AspNetCore.Components.Server.Circuits.RemoteRenderer[100]
Unhandled exception rendering component: Cannot set properties of null (setting 'innerHTML')
TypeError: Cannot set properties of null (setting 'innerHTML')
at Object.create (https://localhost:5002/_content/AntDesign.Charts/ant-design-charts-blazor.js:7:30)
at https://localhost:5002/_framework/blazor.server.js:1:3244
at new Promise ()
at y.beginInvokeJSFromDotNet (https://localhost:5002/_framework/blazor.server.js:1:3201)
at Xt._invokeClientMethod (https://localhost:5002/_framework/blazor.server.js:1:61001)
at Xt._processIncomingData (https://localhost:5002/_framework/blazor.server.js:1:58476)
at Xt.connection.onreceive (https://localhost:5002/_framework/blazor.server.js:1:52117)
at s.onmessage (https://localhost:5002/_framework/blazor.server.js:1:80262)
Microsoft.JSInterop.JSException: Cannot set properties of null (setting 'innerHTML')
TypeError: Cannot set properties of null (setting 'innerHTML')
at Object.create (https://localhost:5002/_content/AntDesign.Charts/ant-design-charts-blazor.js:7:30)
at https://localhost:5002/_framework/blazor.server.js:1:3244
at new Promise ()
at y.beginInvokeJSFromDotNet (https://localhost:5002/_framework/blazor.server.js:1:3201)
at Xt._invokeClientMethod (https://localhost:5002/_framework/blazor.server.js:1:61001)
at Xt._processIncomingData (https://localhost:5002/_framework/blazor.server.js:1:58476)
at Xt.connection.onreceive (https://localhost:5002/_framework/blazor.server.js:1:52117)
at s.onmessage (https://localhost:5002/_framework/blazor.server.js:1:80262)
at Microsoft.JSInterop.JSRuntime.InvokeAsync[TValue](Int64 targetInstanceId, String identifier, Object[] args)
at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
at AntDesign.Charts.ChartComponentBase1.Create() at AntDesign.Charts.ChartComponentBase1.UpdateChart(Object csConfig, Object csOtherConfig, String jsonConfig, String jsConfig, Boolean all, Object csData)
at AntDesign.Charts.ChartComponentBase`1.ChangeData(Object data, Boolean all)

@HuaFangYun
Copy link
Contributor Author

5.0 OK
5.1 Error
The latest code local running program reported an error

@Gareth064
Copy link

I get this error if I navigate away from a page before a chart is finished rendering. How can we stop this?

@ElderJames
Copy link
Member

@Gareth064 I will take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants