Skip to content

Commit

Permalink
docs(common): Update JS Troubleshooting article (#1921)
Browse files Browse the repository at this point in the history
Co-authored-by: Dimo Dimov <[email protected]>
  • Loading branch information
github-actions[bot] and dimodi authored Feb 8, 2024
1 parent 5f905c4 commit 721dcfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions troubleshooting/js-errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ If you get such errors, the reason may be:
* [The `defer` attribute causes the script to load and execute too late](#defer-attribute)
* [The Blazor framework initializes too early](#blazor-autostart)
* [TypeScript `exports` workaround break Telerik Blazor](#typescript)
* [A result of a syntax error in old browser](#syntaxerror-unexpected-token)

### Missing File

Expand Down Expand Up @@ -87,6 +88,7 @@ By default, TypeScript results in compiled code that needs the `exports` object,

The error message may mention a component or feature initialization method, for example:

* `Microsoft.JSInterop.JSException: Could not find 'TelerikBlazor.initCard' ('initCard' was undefined)`.
* `Error: Microsoft.JSInterop.JSException: Could not find 'initGrid' in 'window.TelerikBlazor'.`
* `Error: Could not find 'TelerikBlazorPopup' in 'window'.`
* `Error: Could not find 'TelerikBlazor.columnResizableSetColumns' ('columnResizableSetColumns' was undefined).`
Expand Down Expand Up @@ -122,6 +124,8 @@ This section applies to JavaScript errors similar to `Unexpected token` or `Inva
Such errors indicate an outdated browser version, WebView, or emulator, which doesn't support recent ECMAScript standards.
[Microsoft Blazor supports only current browsers](https://learn.microsoft.com/en-us/aspnet/core/blazor/supported-platforms). The [browser support policy for Telerik UI for Blazor]({%slug system-requirements%}) is the same.

A syntax error will cause the browser to discard the whole `telerik-blazor.js` file, which will also lead to error `Could not find 'TelerikBlazor.initMediaQuery' ('TelerikBlazor' was undefined)`.

## KeyNotFoundException: The given key inputElementValue was not present

The full exception message is `System.Collections.Generic.KeyNotFoundException: The given key 'inputElementValue' was not present in the dictionary.`
Expand Down

0 comments on commit 721dcfa

Please sign in to comment.