blazorBootstrap was undefined
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- bootstrap, html
- 领域
- frontend
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- HTML
- 星标
- 1.2k
- 派生
- 111
- 平均合并
- 4 分钟
- 30 天内合并 PR
- 55
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
vikramlearning/blazorbootstrap 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
vikramlearning/blazorbootstrap#1388 ·
维护者通常 1 天内回复
-
NET 11 Support未关闭
难度 3/5 1-2 天 新手友好度 28/100
vikramlearning/blazorbootstrap#1362 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
vikramlearning/blazorbootstrap#1346 ·
维护者通常 1 天内回复
-
Showcase: rich sample websites built with Blazor Bootstrap可能已有人在做 @gvreddy04 于 8 天前认领。 未关闭
vikramlearning/blazorbootstrap#1343 · 已指派 1 人 ·
维护者通常 1 天内回复
-
area-tree-view new component
难度 5/5 一周以上 新手友好度 8/100
vikramlearning/blazorbootstrap#1339 ·
维护者通常 1 天内回复
查看 vikramlearning/blazorbootstrap 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
DioxusLabs/blitz#1614 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
boxlite-ai/boxlite#2777 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
quality-assurance
难度 2/5 1-3 小时 新手友好度 65/100
Paul-Austin-Oswego-CSC480-HCI521/gift-app#249 ·
维护者通常 1 天内回复
-
bug P3
难度 1/5 1 小时以内 新手友好度 87/100
维护者通常 1 天内回复