-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Window is not defined when using nextjs #131
Comments
Hey 👋, This has already been answered a few times, its due to you using a uncompiled version without a build system. Please see #128 |
Thanks for checking. Will look get a bug fix out that checks if window is defined before trying to register to it. A workaround would be use the uncompiled versions and use something like webpack to build them as the individual plugins do not register themselves with window. This is a special case for the compiled versions. |
Really appreciate the effort! |
Fixed in 0.12.2 |
Versions
BulmaJS: 0.12.1
Browser: Brave 0.12.1 and Google Chrome 87.0.4280.77 (iOS)
Operating system: Linux, KDE Neon
Describe the bug
When importing BulmaJS in a Next.js application the page doesn't render with the error message written in the title.
To Reproduce
Steps to reproduce the behavior:
import Bulma from '@vizuaalog/bulmajs';
yarn dev
ornpm run dev
ornext dev
Expected behavior
I expected BulmaJS to load without any issues.
Screenshots
Not sure if this is something related to Next.js as I haven't tried with another framework or even vanilla html.
The text was updated successfully, but these errors were encountered: