blazorBootstrap was undefined
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- bootstrap, html
- Área
- frontend
Línea de trabajo
Start by checking how the Blazor WebAssembly app loads _content/Blazor.Bootstrap/blazor.bootstrap.js and initializes window.blazorBootstrap.modal.initialize, then reproduce the page navigation and hard refresh in Safari. The report gives no repository, reproducible steps, or expected behavior, so first establish a reliable reproduction and identify the affected initialization path before defining a fix.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
When loading a new page in Safari with the library in the solution I get the following error in the browser console:
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Could not find 'window.blazorBootstrap.modal.initialize' ('blazorBootstrap' was undefined). @https://ourDomain.com/_framework/blazor.webassembly.js:1:377
It only happens when I open a new page and sometimes when I hard refresh but not always and ONLY in Safari.
To Reproduce
Not possible
Expected behavior
Not possible
Screenshots
Versions (please complete the following information):
- .NET Version: .NET 8
- BlazorBootstrap: 3.4.0
- Blazor WebAssembly / Server: WebAssembly
- Blazor Interactive Render Mode: None
- Blazor Interactivity Location: Not really sure how I know that...
Sample code
in csproj:
<PackageReference Include="Blazor.Bootstrap" Version="3.4.0" />
In _Imports.razor:
@using BlazorBootstrap
In index.html I have not used the bootstrap-icons (Im using font-awsome):
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz" crossorigin="anonymous"></script> <script src="_content/Blazor.Bootstrap/blazor.bootstrap.js"></script>
GitHub repo
Not possible
Desktop (please complete the following information):
- OS: iOS
- Browser: Safari
- Version: 26.1 (Safari)
Smartphone (please complete the following information):
Not tested
Additional context
Add any other context about the problem here.
- Lenguaje dominante
- HTML
- Estrellas
- 1.2k
- Forks
- 111
- Merge medio
- 4 min
- PR fusionados (30 d)
- 55
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de vikramlearning/blazorbootstrap
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
vikramlearning/blazorbootstrap#1388 ·
Los mantenedores suelen responder en 1 día
-
NET 11 SupportAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 28/100
vikramlearning/blazorbootstrap#1362 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
vikramlearning/blazorbootstrap#1346 ·
Los mantenedores suelen responder en 1 día
-
Showcase: rich sample websites built with Blazor BootstrapPosiblemente ocupada @gvreddy04 la tomó hace 8 días. Abierto
vikramlearning/blazorbootstrap#1343 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[New Component] TreeViewAbiertoarea-tree-view new component
Dificultad 5/5 Más de una semana Aptitud para principiantes 8/100
vikramlearning/blazorbootstrap#1339 ·
Los mantenedores suelen responder en 1 día
Todos los issues de vikramlearning/blazorbootstrap
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
DioxusLabs/blitz#1614 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
boxlite-ai/boxlite#2777 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
quality-assurance
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Paul-Austin-Oswego-CSC480-HCI521/gift-app#249 ·
Los mantenedores suelen responder en 1 día
-
bug P3
Dificultad 1/5 Menos de una hora Aptitud para principiantes 87/100
Los mantenedores suelen responder en 1 día