-
Notifications
You must be signed in to change notification settings - Fork 6
Uncaught ReferenceError #94
Comments
This error will occur if you include the javascript from our library before including the javascript for blazor itself. For server-side this would mean that You should always include the framework stuff first when working with blazor but if necessary we can mention that in the setup steps of the readme. |
Thanks for the response - just tried that and works great. |
Awesome :) I won't close this issue right now since this is a good reminder to put the disclaimer in the readme. |
I have documented this under the known issues: https://github.com/Joelius300/ChartJSBlazor/wiki/Known-issues#uncaught-reference-error-blazor-is-not-defined-at-chartjsinteropjs5. We should put this to the readme as well. |
I put it to the getting started section as well: https://github.com/Joelius300/ChartJSBlazor/wiki/Getting-started. Todo: Add this to the readme as well. @Joelius300 do you think the way I described the issue is sufficient? |
known issuesYou need to add it for client-side as well. The error should occur there too but I think it's a different js you need to include. You can test that with a client-side application and you will also be able to see what js-file is included for blazor in Also, I see that you also used 'try to..'. I only said that because I wasn't 100% sure if that was the issue they were experiencing. In this case we're describing this exact issue and we exactly know how to fix it so you should write something like 'to fix it you have to..'. getting startedIt shouldn't be its own Step. Just call it 'disclaimer' or so under step 4 instead of making it step 5. |
I will work on all this documentation things today in the evening (I have more time then). |
Known issues:
Getting started:
I will update the readme and afterwards this issue can be closed as well @Joelius300: #98 |
I've probably missed a step somewhere but when I run using Blazor (server side) latest
I get
: Blazor is not defined at ChartJsInterop.js:5
when I check the console window. Any ideas?
The text was updated successfully, but these errors were encountered: