-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Bootstrap as a module does not load Popper #37978
Comments
This does work if we change https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js to https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/esm/popper.min.js ( |
documentation refers to |
Good catch @jcoyne. Indeed the example in https://github.com/twbs/examples/blob/main/sass-js-esm/index.html works well but wasn't good in the documentation. Created a PR to fix it. |
This still seems to be an issue at least on this page: https://getbootstrap.com/docs/5.2/getting-started/javascript/#using-bootstrap-as-a-module. {
"imports": {
"@popperjs/core": "https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js",
"bootstrap": "https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.esm.min.js"
}
} |
The corresponding doc fix has been merged for the 5.3. |
Prerequisites
Describe the issue
I used the code listed https://getbootstrap.com/docs/5.2/getting-started/javascript/#using-bootstrap-as-a-module
And when I run it in Firefox 108.0.2 I get this error on the console
There is a similar error in Safari 16.2:
And the popover does not display.
Reduced test cases
This is the code listed on https://getbootstrap.com/docs/5.2/getting-started/javascript/#using-bootstrap-as-a-module
What operating system(s) are you seeing the problem on?
macOS
What browser(s) are you seeing the problem on?
Firefox & Safari
What version of Bootstrap are you using?
v5.2.3 & 5.3.0-alpha1
The text was updated successfully, but these errors were encountered: