Basaingeal / Razor.SweetAlert2

A Razor class library for interacting with SweetAlert2
MIT License
202 stars 18 forks source link

'CurrieTechnologies' was undefined #2169

Open Gambero81 opened 1 year ago

Gambero81 commented 1 year ago

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 commented 1 year ago

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

Gambero81 commented 1 year ago

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?

TimBurris commented 11 months ago

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.