Closed patrickhacens closed 5 years ago
This is the workaround I found: https://github.com/Joelius300/ChartJSBlazor/issues/18#issuecomment-518124153. I don't know what we can do to fix this...
Thank you for the issue. This is a known issue. Details (as much as we know currently) can be found here.
Closing this for now since AFAIK the problem isn't with our library but with json.net. If this is not correct and you know how we can fix the issue, please tell us :)
@SeppPenner should we include a link to the known issues page somewhere? Maybe here? Or just in the readme?
@patrickhacens do you have an idea where to put a link so you could've found it before opening an issue (not a problem, I'm just trying to make things easier in the future)?
@SeppPenner should we include a link to the known issues page somewhere? Maybe here? Or just in the readme?
In both, I guess? Would make the most sense.
@MindSwipe there are no diffs from the template source file in both commits
@Joelius300 I think i would put it on the usage section on the main readme.md as an observation for those who will use blazor client-side
@Joelius300 You should keep this open just for reference (That we don't forget to document it).
This is now documented under https://github.com/Joelius300/ChartJSBlazor/wiki/Known-issues. I will update the readme as well.
The correction stated in the post helped me. My problem was with the Syncfusion component "Schedule".
Thank you!
The correction stated in the post helped me. My problem was with the Syncfusion component "Schedule".
Thank you!
Interesting that this occurs with other vendor libraries as well. I didn't yet see this with Telerik yet.
Btw this issue was related to the linker thing I deemed unnecessary, sorry about that. Using the linker is a workaround because the client-side version strips the DLLs in order to minimize the size of the payload sent to the client. Using the linker you can prevent it from removing this constructor which is probably only accessed via reflection and therefore it thinks it can safely remove it.
We'll add the workaround back in in a future version (not in this repo of course).
Describe the bug
Chart on client-side is not rendered and the following error is shown on the browser console
Which Blazor project type is your bug related to?
Which charts does this bug apply to?
Line Chart but i had not the time to test on them all
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The chart to be drawn unto the screen
Correction found
Searching a bit I found a solution on this link https://github.com/JamesNK/Newtonsoft.Json/issues/2020, it seems to be a problem with
Newtonsoft.Json
but I'm not sure if it should be corrected by them