We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using bootstrap@^5.0.0-beta3 as ES6 modules in React/Gatsby.js
bootstrap@^5.0.0-beta3
In node window and document are undefined. There should be a check for these so they work in similar cases. https://github.com/twbs/bootstrap/blob/main/js/src/alert.js#L130
window
document
undefined
The text was updated successfully, but these errors were encountered:
Sorry, this can be fixed by conditional dynamic import. Don't think it is relevant to bootstrap. In case someone needs it:
const bootstrap = typeof window !== `undefined` && import("bootstrap") useEffect(() => { bootstrap?.then(({ Modal }) => { const modalEl = modalRef.current setModal(new Modal(modalEl, { keyboard: false, backdrop: "static" })) }) }, [])
Seems to work.
Sorry, something went wrong.
Sorry, this can be fixed by conditional dynamic import. Don't think it is relevant to bootstrap.
We can't always depend on dynamic imports, this has everything to do with BS. Read this: #34989 (comment)
No branches or pull requests
Using
bootstrap@^5.0.0-beta3
as ES6 modules in React/Gatsby.jsIn node
window
anddocument
areundefined
. There should be a check for these so they work in similar cases.https://github.com/twbs/bootstrap/blob/main/js/src/alert.js#L130
The text was updated successfully, but these errors were encountered: