From 721dcfa2c1fbe1498b7507fcc086316c8db15060 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 8 Feb 2024 10:40:46 +0200 Subject: [PATCH] docs(common): Update JS Troubleshooting article (#1921) Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com> --- troubleshooting/js-errors.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/troubleshooting/js-errors.md b/troubleshooting/js-errors.md index bdf147255..d533abd19 100644 --- a/troubleshooting/js-errors.md +++ b/troubleshooting/js-errors.md @@ -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 @@ -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).` @@ -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.`