Skip to content
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

'CurrieTechnologies' was undefined #2169

Open
Gambero81 opened this issue Nov 8, 2022 · 3 comments
Open

'CurrieTechnologies' was undefined #2169

Gambero81 opened this issue Nov 8, 2022 · 3 comments

Comments

@Gambero81
Copy link

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?

@Gambero81
Copy link
Author

i found another issue like this one (#1416) tried to disable cache but not working..

@Gambero81
Copy link
Author

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants