Closed cb-jake closed 1 week ago
Version 4.0.4 throws window not defined error on server rendered apps like next.js
Regression was most likely introduced in one of these PR's:
https://github.com/coinbase/coinbase-wallet-sdk/pull/1321 https://github.com/coinbase/coinbase-wallet-sdk/pull/1322
SDK to not throw error. It should check for window to be defined
4.0.4
Chrome
No response
Describe the bug
Version 4.0.4 throws window not defined error on server rendered apps like next.js
Steps
Regression was most likely introduced in one of these PR's:
https://github.com/coinbase/coinbase-wallet-sdk/pull/1321 https://github.com/coinbase/coinbase-wallet-sdk/pull/1322
Expected behavior
SDK to not throw error. It should check for window to be defined
Version
4.0.4
Additional info
Desktop
Chrome
Smartphone
No response