-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(common): KB on missing CDN for JS interop
- Loading branch information
1 parent
2243029
commit b749b28
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
knowledge-base/no-cdn-for-js-interop-file-1-2-0-and-later.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: No CDN for JS Interop after 1.2.0 | ||
description: How to include the JS Interop file after 1.2.0 when there is no CDN. | ||
type: how-to | ||
page_title: No CDN for JS Interop after 1.2.0 | ||
slug: no-cdn-for-js-interop-file-1-2-0-and-later | ||
position: | ||
tags: | ||
ticketid: | ||
res_type: kb | ||
--- | ||
|
||
## Problem | ||
|
||
I cannot find the CDN for the `telerik-blazor.min.js` JS Interop file. I get `404` requests when I try to use it for version `1.2.0` or later. | ||
|
||
``` | ||
GET https://kendo.cdn.telerik.com/blazor/1.2.0/telerik-blazor.min.js net::ERR_ABORTED 404 | ||
``` | ||
|
||
Other symtoms can include: | ||
* JS errors shown in the browser console such as `Error: Microsoft.JSInterop.JSException: Could not find 'TelerikBlazorDatePicker' in 'window'`. | ||
* inputs that do not work or validate as expected | ||
* inability to expand a date picker | ||
* inability to navigate between views | ||
|
||
## Solution | ||
|
||
As of the `1.2.0` release, the JS Interop file is no longer maintained on the Telerik CDN. As of Preview 6, the .NET framework provides a feature for inclusion of local assets coming from a package like ours, and this is how we distribute the file. | ||
|
||
@[template](/_contentTemplates/common/js-interop-file.md#js-interop-file-snippet) | ||
|
||
If you would like to serve it from a cloud, save its contents and create a CDN of your choice. |