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
fix: don't use window in new WalletConnection
#801
Conversation
You can see that this works here: TENK-DAO/frontend-starter@bdfd70d This can be used now by updating your
|
This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days. |
Not stale! |
This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days. |
@MaximusHaximus I think we can merge such a fix since we are not working on a better resolution now. |
This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days. |
Not stale |
This PR is stale because it has been open for 7 days with no activity. Remove stale label or comment or this will be closed in another 7 days. |
this stale bot is a pain |
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or this will be closed in another 7 days. |
OMG |
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or this will be closed in another 7 days. |
😖 |
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or this will be closed in another 7 days. |
🥇 |
This PR is stale because it has been open for 14 days with no activity. Remove stale label or comment or this will be closed in another 7 days. |
Nooooooo |
@gutsyphilip @andy-haynes can you take a look at this PR? |
@agileurbanite @MaximusHaximus can this wait until we publish a For the purposes of SSR, like in Gatsby and Next.js I believe these issues can be addressed using dynamic imports like suggested here for example so that parts of the app that require use of the current package or the future |
I understand this approach is not perfect but it's small and safe and fixes some important use cases. Why not merge it. |
Like, you can merge this now and do the bigger better thing later. |
I agree. There have been so many people reporting this problem since Dec 2021 or earlier, and near-api-js has never been updated to address it. cc @agileurbanite |
@chadoh I think the best approach to take here is to treat the @ryancwalsh The first issue in #747 should be fixed the same way (just for the The package separation will make which packages to import where more explicit but the same measures will have to be taken if you are importing browser modules in the server. |
Created a proposed solution in #896 . I think there's a genuine complaint here about devX in SSR stacks, we just have to balance that out with the behavior in Node.js as well |
Fixed in #896 Thanks guys! 🙂 |
Quick workaround to address #747 until the larger #748 is dealt with