Closed shuffgy closed 4 years ago
I guess this happens when the bundler outside of browsers, don't know how to treat the window object. The same thing can happens when building with gatsby. The problem can easily be solved by changing window
to this
in the moulde file's lib/darkmodejs-js
. If you want to use in production, you might need this to be originally fixed by the library. (Report to library authors)
P.S. I don't know the side effects of editing the file, and other relating errors. It just fixed for me.
Hey, as mentioned via mail is here the issue.
While integrating in my next.js-App its working fine with the widget. But if i dont use the widget, it breaks the app with "
window not defined
".Your answer:
so, here it is :D
Thank you very much!