Uncaught TypeError: Cannot read properties of null (reading 'classList') at Radzen.Blazor.js:20:17 #1450

Closed
opened 2026-01-29 17:53:49 +00:00 by claunia · 3 comments
Owner

Originally created by @Indoraptor1 on GitHub (Oct 29, 2024).

Describe the bug
When I open my application it throws this error, it worked since now and i changed nothing on the code, just got a new PC.

To Reproduce
Steps to reproduce the behavior:

  1. Just opened the site

Alternatively link your repo with a sample project that can be run.

Expected behavior
Works without error

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • OS: Windows 11 Home
  • Browser chrome
  • Version 130.0.6723.70 (Hivatalos verzió) (64 bites) (cohort: Stable)

Additional context
I tryed clearing nuget cache, but it is not worked.

Originally created by @Indoraptor1 on GitHub (Oct 29, 2024). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can report your issue or ask us a question via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. Specify all the steps required to reproduce the issue or link a project which reproduces it easily (without requiring extra steps such as restoring a database). --> **Describe the bug** When I open my application it throws this error, it worked since now and i changed nothing on the code, just got a new PC. **To Reproduce** Steps to reproduce the behavior: 1. Just opened the site Alternatively link your repo with a sample project that can be run. **Expected behavior** Works without error **Screenshots** If applicable, add screenshots to help explain your problem. <img width="1279" alt="image" src="https://github.com/user-attachments/assets/b57c098a-a16f-4140-aadc-81f4851e7be6"> **Desktop (please complete the following information):** - OS: Windows 11 Home - Browser chrome - Version 130.0.6723.70 (Hivatalos verzió) (64 bites) (cohort: Stable) **Additional context** I tryed clearing nuget cache, but it is not worked.
Author
Owner

@akorchev commented on GitHub (Oct 29, 2024):

Check this thread: https://forum.radzen.com/t/version-5-4-0-js-error/18877/10

You are not including Radzen.Blazor.js where you are supposed to.

@akorchev commented on GitHub (Oct 29, 2024): Check this thread: https://forum.radzen.com/t/version-5-4-0-js-error/18877/10 You are not including Radzen.Blazor.js where you are supposed to.
Author
Owner

@Indoraptor1 commented on GitHub (Oct 29, 2024):

Hello!
This is how my index.html looks like:

<!DOCTYPE html>
<html lang="hu">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Termék kezelő</title>
    <base href="/" />
    <link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
    <link rel="stylesheet" href="css/app.css" />
    <link rel="icon" type="image/png" href="favicon.png" />
    <link href="WebClient.styles.css" rel="stylesheet" />
    <link rel="stylesheet" href="_content/Radzen.Blazor/css/material-base.css">
    <script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script>
    <script src="js/download.js"></script>
    <script src="js/jquery-3.7.1.min.js"></script>
</head>

<body>
    <div id="app">
        <svg class="loading-progress">
            <circle r="40%" cx="50%" cy="50%" />
            <circle r="40%" cx="50%" cy="50%" />
        </svg>
        <div class="loading-progress-text"></div>
    </div>

    <div id="blazor-error-ui">
        An unhandled error has occurred.
        <a href="" class="reload">Reload</a>
        <a class="dismiss">🗙</a>
    </div>
    <script src="_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js"></script>
    <script src="_framework/blazor.webassembly.js"></script>
</body>

</html>

Im using WebAssebly, but asp.net hosted (.NET 8)

@Indoraptor1 commented on GitHub (Oct 29, 2024): Hello! This is how my index.html looks like: ```html <!DOCTYPE html> <html lang="hu"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Termék kezelő</title> <base href="/" /> <link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"> <link rel="stylesheet" href="css/app.css" /> <link rel="icon" type="image/png" href="favicon.png" /> <link href="WebClient.styles.css" rel="stylesheet" /> <link rel="stylesheet" href="_content/Radzen.Blazor/css/material-base.css"> <script src="_content/Radzen.Blazor/Radzen.Blazor.js"></script> <script src="js/download.js"></script> <script src="js/jquery-3.7.1.min.js"></script> </head> <body> <div id="app"> <svg class="loading-progress"> <circle r="40%" cx="50%" cy="50%" /> <circle r="40%" cx="50%" cy="50%" /> </svg> <div class="loading-progress-text"></div> </div> <div id="blazor-error-ui"> An unhandled error has occurred. <a href="" class="reload">Reload</a> <a class="dismiss">🗙</a> </div> <script src="_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/AuthenticationService.js"></script> <script src="_framework/blazor.webassembly.js"></script> </body> </html> ``` Im using WebAssebly, but asp.net hosted (.NET 8)
Author
Owner

@akorchev commented on GitHub (Oct 29, 2024):

You should include Radzen.Blazor.js according to the getting started instructions. As I said you are not doing that currently.

@akorchev commented on GitHub (Oct 29, 2024): You should include Radzen.Blazor.js according to the [getting started instructions](https://blazor.radzen.com/get-started/wasm#js). As I said you are not doing that currently.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1450