Razor.SweetAlert2 icon indicating copy to clipboard operation
Razor.SweetAlert2 copied to clipboard

'CurrieTechnologies' was undefined

Open Gambero81 opened this issue 2 years ago • 3 comments

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:

image

index.html is not changed and contains reference to js ( )

any help?

Gambero81 avatar Nov 08 '22 14:11 Gambero81

i found another issue like this one (https://github.com/Basaingeal/Razor.SweetAlert2/issues/1416) tried to disable cache but not working..

Gambero81 avatar Nov 08 '22 14:11 Gambero81

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?

Gambero81 avatar Nov 08 '22 15:11 Gambero81

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.

TimBurris avatar Oct 12 '23 12:10 TimBurris