Basaingeal / Razor.SweetAlert2

A Razor class library for interacting with SweetAlert2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

'CurrieTechnologies' was undefined

Gambero81 opened this issue · 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 ( <script src="_content/CurrieTechnologies.Razor.SweetAlert2/sweetAlert2.min.js"></script>)

any help?

i found another issue like this one (#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.