-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hosted Blazor Web App throws error when opening (invalid cache?) #54285
Comments
@Code-Chops thanks for contacting us. You can use |
Thank you very much! Do you know why this is happening? Shouldn't Blazor check if newer versions are available and clear the cache accordingly? |
And what cache are we talking about? Because we clear the 'Cache storage' and the problem still exists |
Thanks for reaching out. Just a few questions:
If possible, please also provide us with a minimal repro project hosted as a public GitHub repository so we can look into this issue further. Thanks!
There is a hash in |
Sorry for the late response. We finally got it working by adding an ETag in our headers with the current version of the application as value. But now we get the following warning in the console: Can we ignore this error?
It was difficult for me to recreate a repro. Thank you! |
@Code-Chops I get this error aswell:
And I am wondering, if this error can be ignored or not. I've just updated to .NET 8 and deleted the |
Is there an existing issue for this?
Describe the bug
When opening our hosted Blazor app our customers get an exception.
Clearing the cache fixes the problem. I think this problem occurs because the old DLLs are still in the cache storage. What is the problem here? And what can I do about it? At the moment we have to tell our customers to clear the cache in the developer window, which is unwanted of course. Thanks in advance!
Expected Behavior
A working Blazor Web App
Steps To Reproduce
No response
Exceptions (if any)
dotnet.runtime.8.0.2.xpxg2k6ml2.js:3 MONO_WASM: instantiate_wasm_module() failed LinkError: WebAssembly.instantiate(): Import #42 module="env" function="dlopen": function import requires a callable
dt @ dotnet.runtime.8.0.2.xpxg2k6ml2.js:3
dotnet.js:3 MONO_WASM: LinkError: WebAssembly.instantiate(): Import #42 module="env" function="dlopen": function import requires a callable
u @ dotnet.js:3
blazor.web.js?v=2.3.16:1 Error in mono_download_assets: LinkError: WebAssembly.instantiate(): Import #42 module="env" function="dlopen": function import requires a callable
Rr @ blazor.web.js?v=2.3.16:1
4dotnet.js:3 Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #42 module="env" function="dlopen": function import requires a callable
dotnet.runtime.8.0.2.xpxg2k6ml2.js:3 Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #42 module="env" function="dlopen": function import requires a callable
2app.dentalrules.nl/:1 Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #42 module="env" function="dlopen": function import requires a callable
blazor.web.js?v=2.3.16:1 Uncaught (in promise) Error: Failed to start platform. Reason: LinkError: WebAssembly.instantiate(): Import #42 module="env" function="dlopen": function import requires a callable
at ei (blazor.web.js?v=2.3.16:1:164030)
blazor.web.js?v=2.3.16:1 Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #42 module="env" function="dlopen": function import requires a callable
.NET Version
8.0.201
Anything else?
No response
The text was updated successfully, but these errors were encountered: