-
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
[BLOCKER] Runtime Error in WP-Desktop: "TypeError: ...default is not a function..." #40789
Comments
It's a long shot but this PR might be worth testing to see if it helps (by removing a test helper that imported a polyfill library): #40596 |
Thanks, @sirbrillig - I tried building a desktop branch with that PR, but unfortunately the runtime error still persists:
Still a useful exercise in ruling out the imported polyfill library, at least. |
Update: I believe I've been able to isolate the SHA that introduced the runtime error. I tested a series of Calypso commits in a temporary branch However nothing obvious jumps out to me with respect to the diff in 8528342, although I see that some webpack configuration items were changed. @jsnajdr Wondering if you might have any educated guesses here? |
Closing this issue as it has been address by #40925 and did not auto-close for some reason. |
Attempting to run WP Desktop with the latest Calypso master results in a runtime error:
TypeError: ...default is not a function...
. I tried debugging this (see my notes below) but haven't been successful and would appreciate some help.Steps to reproduce
Update wp-desktop submodule with latest Calypso. Build and run the application.
Screenshots
Browser / OS version
macOS 10.15.3
Attempts to Debug
I tried to isolate the root cause but haven't had much luck. Perhaps these notes might be useful anyway.
Last known good SHA: 3af7284
First known bad SHA: e9cc8c0
npm ci
and rebuild at each step), but got inconsistent results (not sure why, I must be missing something)NODE_ENV=production
). So perhaps webpack related?allowSyntheticDefaultImports
setting. I see we use this in the Calypso config - do we need to apply this in Desktop as well?Not sure if any of the above notes are helpful but figured it wouldn't hurt to share.
The text was updated successfully, but these errors were encountered: