카테고리 없음

C# Blazor - Telerik사용 시 에러메시지 해결방법

Pearl_mini 2024. 2. 5. 08:36
728x90

분명 import에도 선언을 해놨고 했는데 Telerik 정의되어있지 않다 라는 아래와 같은 에러가 자꾸 발생했다.

 

에러메시지: 

Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Could not find 'TelerikBlazor.getLocationHost' ('TelerikBlazor' was undefined).
      Error: Could not find 'TelerikBlazor.getLocationHost' ('TelerikBlazor' was undefined).

 

 

 

이 때 해결법은 index.html 파일의 <body>안에다가 아래 scipt를 추가해주면 된다.

 

    <script src="../_content/Telerik.UI.for.Blazor/js/telerik-blazor.js"></script>

 

728x90