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

Could not find 'window.blazorBootstrap.scriptLoader.initialize' ('scriptLoader' was undefined). #16

Open
christopherdude opened this issue Sep 2, 2024 · 2 comments

Comments

@christopherdude
Copy link

I've used this package in multiple projects, but this is the first time I've received this error. On a razor page (index.razor) I simply have the following:

<ScriptLoader Async="true"
              Class="mt-4"
              ScriptId="script1"
              Source="//cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js" />

However, I keep receiving this error:
Could not find 'window.blazorBootstrap.scriptLoader.initialize' ('scriptLoader' was undefined).

I have all of the requirements fulfilled on each page, file, etc.; I just can't figure out what it's looking for / can't find?

@christopherdude
Copy link
Author

The issue seems to be that the ScriptLoader scripts aren't in the /_content/Blazor.Bootstrap/blazor.bootstrap.js file. Reverting to version 2.2.0 solves the problem.

@gvreddy04
Copy link
Contributor

@christopherdude Thank you for using BlazorBootstrap. Which template are you using?

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