Skip to content

Commit 1b7e12c

Browse files
docs(common): KB on missing CDN for JS interop
1 parent 70825d2 commit 1b7e12c

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

_contentTemplates/common/js-interop-file.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,5 @@
2525
<script src="_content/telerikuiforblazor/js/telerik-blazor.js" defer></script>
2626
</head>
2727

28-
As of version `1.2.0` we no longer maintain a CDN with the JS Interop file. If you would like to serve it from a cloud, save its contents and create a CDN of your choice.
2928
#end
3029

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: No CDN for JS Interop after 1.2.0
3+
description: How to include the JS Interop file after 1.2.0 when there is no CDN.
4+
type: how-to
5+
page_title: No CDN for JS Interop after 1.2.0
6+
slug: no-cdn-for-js-interop-file-1-2-0-and-later
7+
position:
8+
tags:
9+
ticketid:
10+
res_type: kb
11+
---
12+
13+
## Problem
14+
15+
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.
16+
17+
```
18+
GET https://kendo.cdn.telerik.com/blazor/1.2.0/telerik-blazor.min.js net::ERR_ABORTED 404
19+
```
20+
21+
Other symtoms can include:
22+
* JS errors shown in the browser console such as `Error: Microsoft.JSInterop.JSException: Could not find 'TelerikBlazorDatePicker' in 'window'`.
23+
* inputs that do not work or validate as expected
24+
* inability to expand a date picker
25+
* inability to navigate between views
26+
27+
## Solution
28+
29+
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.
30+
31+
@[template](/_contentTemplates/common/js-interop-file.md#js-interop-file-snippet)
32+
33+
If you would like to serve it from a cloud, save its contents and create a CDN of your choice.

0 commit comments

Comments
 (0)