Known issues - Joelius300/ChartJSBlazor GitHub Wiki

MissingMethodException when using client-side blazor

WASM: Error while setting up chart: Constructor on type 'System.ComponentModel.ReferenceConverter' not found.

Currently there seems to be a serialization issue for client-side projects. It's related to this bug from json.net.

A workaround for this can be found under this comment.

This bug will be entirely fixed either in an update of json.net, (blazor) or when the migration from Newtonsoft.Json to System.Text.Json is complete.

Uncaught reference error: "Blazor is not defined at ChartJsInterop.js:5"

This error will occur if you include the JavaScript from our library before including the JavaScript for Blazor itself.

  • For server-side Blazor, this means that _framework/blazor.server.js was included after _content/ChartJs.Blazor.Fork/ChartJsInterop.js.

  • For client-side Blazor, this means that _framework/blazor.webassembly.js was included after _content/ChartJs.Blazor.Fork/ChartJsInterop.js.

In both cases, you can fix this by including the corresponding _framework-stuff before the ChartJs.Blazor-stuff.