You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the library with an SSR framework results in a build error: ReferenceError: self is not defined
I believe the error comes from the connex library which requires a reference to the global window instance on import. Maybe the issue should be moved to the connex package at your discretion.
Steps to reproduce
Create a new Next.js project
Install @vechain/dapp-kit-react
Import any item from the package (you do not need to run any code, just importing is enough to break it)
Using the library with an SSR framework results in a build error:
ReferenceError: self is not defined
I believe the error comes from the connex library which requires a reference to the global window instance on import. Maybe the issue should be moved to the connex package at your discretion.
Steps to reproduce
npm run build
ornpm run dev
Example
https://codesandbox.io/p/devbox/dapp-kit-nextjs-99tmxr
cc @GianBarGian
The text was updated successfully, but these errors were encountered: