-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Exception when starting in debug #5
Comments
The error is saying that the JS Interop can't find the appInsights JavaScript object. Example,
|
Yes, as mentioned, it does work if I reload the page. |
I just checked one of my work projects which uses auth. I am not seeing the same issue that you're experiencing. Here is the App.razor
I wonder if this is a timing issue. Can you please edit your JS snippet and set the ld parameter to -1.
|
I had this issue happen to me, I tested with ld = -1 and it hasn't reoccurred. I have updated the installation guidance in the readme. Let me know if you see this issue again. |
My implementation is almost verbatim for the example. Only major difference is that my App.razor is wrapped in a
<CascadingAuthenticationState>
component and the<ApplicationInsightsComponent>
is outside of it.Microsoft.JSInterop.JSException: Could not find 'appInsights' in 'window'.
If I reload the page, the error goes away.
The text was updated successfully, but these errors were encountered: