single-spa / single-spa-inspector

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

extention not working for chrome #61

Closed pmjhonwang closed 3 years ago

pmjhonwang commented 3 years ago

Uncaught (in promise) Error: eval Cmd 'window.SINGLE_SPA_DEVTOOLS.exposed Methods.getRawAppData()' failed: {"code":"E_PROTOCOLERROR","description":"Inspector protocol error: %s","details":["Object reference chain is too long"],"isError":true}

Google Chrome Version 90.0.4430.212 (Official Build) (x86_64)

pmjhonwang commented 3 years ago
import singleSpa from "single-spa";

let arrayProps = []

for (let i =1; i<=100; i++ ){
  arrayProps.push({ p1: 1, p2: i })
}

const customProps = {
    ...,
   arrayProps,
}

singleSpa.registerApplication({
  name: app,
  app: () => System.import(app),
  activeWhen,
  customProps,
});
joeldenning commented 3 years ago

I am using Chrome Version 90.0.4430.212 (Official Build) (x86_64), and do not see the error.