single-spa / single-spa-inspector

A devtools extension for single-spa applications
https://single-spa.js.org
MIT License
76 stars 17 forks source link

Inspector bug report #92

Closed IsabelGraciano closed 2 months ago

IsabelGraciano commented 6 months ago

Error during addOverride. evalCmd '(function() { return window.importMapOverrides.addOverride("quality-interaction-analysis", "https://localhost:3001/js/spa.js") })()' failed: {"isException":true,"value":"TypeError: Cannot read properties of undefined (reading 'addOverride')\n at :2:42\n at :3:9"}


Error: evalCmd '(function() {
        return window.importMapOverrides.addOverride("quality-interaction-analysis", "https://localhost:3001/js/spa.js")
      })()' failed: {"isException":true,"value":"TypeError: Cannot read properties of undefined (reading 'addOverride')\n    at <anonymous>:2:42\n    at <anonymous>:3:9"}
    at c (chrome-extension://emldbibkihanfiaiaghebffnbahjcgcp/build/panelApp.js:31:9214)
    at async chrome-extension://emldbibkihanfiaiaghebffnbahjcgcp/build/panelApp.js:31:11758
    at async Promise.all (index 0)
    at async commitOverrides (chrome-extension://emldbibkihanfiaiaghebffnbahjcgcp/build/panelApp.js:31:12135)```
joeldenning commented 2 months ago

This looks like the import-map-overrides library hasn't been loaded into the web page. Originally, single-spa-inspector worked without import-map-overrides, but then some former maintainers decided it was in conflict with import-map-overrides and feuded over whether to archive single-spa-inspector or not.