diff --git a/devtools/chrome-extension/src/extension/backend.ts b/devtools/chrome-extension/src/extension/backend.ts index 02a3e222532..aa52254d0db 100644 --- a/devtools/chrome-extension/src/extension/backend.ts +++ b/devtools/chrome-extension/src/extension/backend.ts @@ -49,7 +49,14 @@ const send = ({ source: '@formily-devtools-inject-script', type, id, - graph: form && JSON.stringify(graph), + graph: + form && + JSON.stringify(graph, (key, value) => { + if (typeof value === 'symbol') { + return value.toString() + } + return value + }), }, '*' )