Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix: recover superclass module load errors
[._.]/ Adam Eivye66ab0ad3f8c
diff --git a/client/src/utils/staleChunkReload.js b/client/src/utils/staleChunkReload.jsindex 0c18e1c854..9e3a029371 100644--- a/client/src/utils/staleChunkReload.js+++ b/client/src/utils/staleChunkReload.js@@ -13,7 +13,10 @@ const STALE_CHUNK_PATTERNS = ['failed to fetch dynamically imported module','error loading dynamically imported module','importing a module script failed',- 'mime type'+ 'mime type',+ // A mixed old/new chunk graph can resolve the module request but provide a+ // stale superclass export, which fails while evaluating the imported module.+ 'superclass is not a constructor'];const RELOAD_FLAG = 'portos.staleChunkReloadAttempted';diff --git a/client/src/utils/staleChunkReload.test.js b/client/src/utils/staleChunkReload.test.jsindex ad85513bad..4315e9ed91 100644--- a/client/src/utils/staleChunkReload.test.js+++ b/client/src/utils/staleChunkReload.test.js@@ -59,6 +59,7 @@ describe('isStaleChunkError', () => {'Failed to fetch dynamically imported module','error loading dynamically imported module','Expected a JavaScript module but got MIME type text/html',+ 'The superclass is not a constructor.',])('matches %s', (msg) => {expect(isStaleChunkError(new Error(msg))).toBe(true);});