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
This is more urgent than it might seem — we hit a production breakage that was ultimately rooted in a gaxios bug that Node 24 coverage would have caught.
What happened
#getFetch() in gaxios checks typeof window !== 'undefined' to detect browser environments, then uses window.fetch. In our server, packages/theydo-editor-schema sets globalThis.window = jsdomInstance.window so Tiptap's server-side HTML helpers have access to window.DOMParser. jsdom does not implement fetch, so window.fetch === undefined — and every BigQuery auth request threw:
TypeError: fetchImpl is not a function
at Gaxios._request (gaxios.ts:227:15)
This resulted in 185 production errors on @google-cloud/bigquery connections across April 21–24, 2026.
Correction to my earlier comment
I initially blamed Node 24.15 / undici 7.24.4 for causing the breakage (the timing correlated with a Node upgrade). That was wrong — the same error reproduced on 24.14. The Node version was never the cause; the real trigger was the jsdom globalThis.window assignment, which exposed the fragility in gaxios's hasWindow heuristic.
Why Node 24 CI still matters
Even though Node 24 wasn't the root cause here, adding it to the matrix would have caught the breakage earlier — a test running gaxios on Node 24 in a jsdom-polluted environment would have failed. More broadly, as Node 24 becomes widely adopted, any incompatibility with newer undici or V8 versions will go undetected without it in the matrix.
A fix for the gaxios hasWindow issue is proposed in PR #8107: #8107
Activity
bmbferreira commentedon Apr 24, 2026
This is more urgent than it might seem — we hit a production breakage that was ultimately rooted in a gaxios bug that Node 24 coverage would have caught.
What happened
#getFetch()in gaxios checkstypeof window !== 'undefined'to detect browser environments, then useswindow.fetch. In our server,packages/theydo-editor-schemasetsglobalThis.window = jsdomInstance.windowso Tiptap's server-side HTML helpers have access towindow.DOMParser. jsdom does not implementfetch, sowindow.fetch === undefined— and every BigQuery auth request threw:This resulted in 185 production errors on
@google-cloud/bigqueryconnections across April 21–24, 2026.Correction to my earlier comment
I initially blamed Node 24.15 / undici 7.24.4 for causing the breakage (the timing correlated with a Node upgrade). That was wrong — the same error reproduced on 24.14. The Node version was never the cause; the real trigger was the jsdom
globalThis.windowassignment, which exposed the fragility in gaxios'shasWindowheuristic.Why Node 24 CI still matters
Even though Node 24 wasn't the root cause here, adding it to the matrix would have caught the breakage earlier — a test running gaxios on Node 24 in a jsdom-polluted environment would have failed. More broadly, as Node 24 becomes widely adopted, any incompatibility with newer undici or V8 versions will go undetected without it in the matrix.
A fix for the gaxios
hasWindowissue is proposed in PR #8107: #8107pearigee commentedon Jul 29, 2026
24 is now covered in our testing matrix.