When including the library in a next.js app, I see the following errors:
Server Error: ReferenceError: self is not defined
self
with globalThis
in your build/index.js
leads to: Server Error: ReferenceError: document is not defined
Both of these happen because neither self
nor document
globals exist in a server-side-rendered environment.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too