-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Calypso Runtime Error in WP-Desktop: “globalThis is not defined” #38819
Comments
I think it was broken in #38560 by @sgomes, as he added a usage of The problem is that require( '@automattic/calypso-polyfills' ); at the beginning of desktop/index.js The fastest hotfix right now should be to define the globalThis = global; |
@jsnajdr I just tried the above fix and that didn't seem to work. 🤔 Added
This blog post seems to indicate that polyfilling |
A full polyfill is indeed more complex, but it covers a lot more details. FWIW, I intend to merge #38660 tomorrow, so if you're ok with waiting until then you can implement the cleaner solution that @jsnajdr mentioned first! 👍 |
Thanks for the pointer and the education, @sgomes! Totally fine to wait until the cleaner approach is merged and we can test that out instead. |
Update: this has now been merged, and I believe @jsnajdr is looking into the desktop fix. |
Yes, we need to publish the |
The change in wp-desktop #743 looks good. We should verify that latest Calypso can build with wp-desktop after that PR lands before closing this issue out. |
Description
A recent change to Calypso has introduced a runtime error in WP-Desktop as of latest Calypso master (652ca9a).
Steps to Reproduce:
WordPress.com
desktop app in therelease/mac
directory)Notes: The last known good SHA of Calypso in WP-Desktop is b288baa, and I first encountered this error when trying to merge a838790, indicating the breaking change was introduced into Calypso somewhere between those commits.
The text was updated successfully, but these errors were encountered: