Comments (5)
Hi.
Weird, but I cloned your project, started it and not errors, as well navigated all pages but still no errors.
Visual Studio Enterprise v17.8.3
Would be also nice if you could show "call stack".
In addition update the libraries just in case to the latest
the -rc
libraries have some bugs (#453 (comment))
from templates.
It must have something to do with my Debug options. If I unchecked that "Break when this exception type is unhandled", then it continues and runs ok. After unchecking that, I can't get it to reproduce again.
Looking at the call stack, it seems like this is a sort-of expected exception to happen with JS interop during pre-rendering. It seems to me it would be better to somehow detect the pre-rendering and not do the JS interop at all, but I suppose its OK the way it is.
It is not clear to me why my Visual Studio thought the exception was unhandled. Strange.
I guess it is fine to close this, but it was a bad first impression for me with MudBlazor.
from templates.
I'm not sure if it comes from our code or not, but Microsoft doesn't have any public API to identify what rendering mode is used, nor there is API to understand if the JsRuntime
is available. You can understand it in a razor component (after the OnAfterRenderAsync
lifecycle, and in our code we call JS in component when its available), but not in a service if it's using JS. There are also JS errors when circuit breaks JSDisconnectedException
, TaskCanceledException
and all we can do is to suppress those errors.
from templates.
I had a similar error with WebAssembly interactivity setup, and it went away by explicitly defining the MudBlazor version, and also make sure you're targeting the latest version of the .Net Core. In short, my project file went from:
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.0-rc.2.23480.2" />
<PackageReference Include="MudBlazor" Version="6.*" />
to:
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.2" />
<PackageReference Include="MudBlazor" Version="6.17.0" />
from templates.
Hi everyone, I am working on upgrading the templates for MudBlazor 7.0.0 in this PR: #465. I haven't seen this error but I will test this project type for you.
from templates.
Related Issues (20)
- Inline styles in Blazor Server
- .Net 8 Templates for WebApp and MAUI HOT 1
- Template not found HOT 18
- Rendering does not Work correclty in "InteractivityAuto_AlliInteractive_auth" HOT 2
- Invalid options (from Tutorial) HOT 1
- Logout code not included. HOT 3
- No Exception information shown HOT 1
- error when use .net 8 template with interactive render auto HOT 9
- Template With Auth and MudBlazor Components HOT 1
- Templates with multiple .csproj files (i.e. Auto and Wasm) break when created inside of a directory that follows kebab case naming convention (i.e. my-mudblazor-project). HOT 1
- Filtering and paging Datagrid not working HOT 1
- Interactivity does not work in MudBlazor WASM template for Visual Studio for .NET 8 HOT 7
- PWA not working HOT 1
- Authentication pages cause the app not to update mudblazor layers properly HOT 3
- Add material design 3 HOT 1
- MudIcon CreationTool HOT 2
- MudBlazor template is missing unhandled exceptions div HOT 8
- How to view the template displayed on the homepage HOT 3
- Logout returns 405, static checkbox does not work on remember me HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from templates.