Razor.SweetAlert2
Razor.SweetAlert2 copied to clipboard
'CurrieTechnologies' was undefined
I have integrated the library in blazor wasm net6 application, until some week ago it works well.
Now when i try to open an alert it raise this error on console:
index.html is not changed and contains reference to js ( )
any help?
i found another issue like this one (https://github.com/Basaingeal/Razor.SweetAlert2/issues/1416) tried to disable cache but not working..
Problem seem solved adding defer keyword on script reference:
<script src="_content/Telerik.UI.for.Blazor/js/telerik-blazor.js" defer></script>
there is a reason?
I'm still seeing this issue. adding "defer" does not seem to resolve. I have to do a cntrl F5 (forced webpage reload) for it to work.
everytime i rebuild, i have to do it (cntrl F5) again, even when there are no changes related to sweetalert.
additionally, this only seems to happen when i run my blazor app without debugger attached (also have hot reload disabled). if i run with debugger, i do not get this error.
all other scripts (blazor, blazored, custom, etc) seem to work, so running without debugger and without hot reload should be an acceptable workflow.