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
app.get('/', async function (req, res) {
const ret = await renderer.renderHtml()
console.log( ret )
res.send(ret)
});
在 send 发送的时候报错:
(node:21428) UnhandledPromiseRejectionWarning: TypeError: Converting circular structure to JSON
--> starting at object with constructor 'SSR'
| property 'plugin' -> object with constructor 'PluginManage'
| property 'plugins' -> object with constructor 'Array'
| index 0 -> object with constructor 'InstallPlugin'
--- property 'ssr' closes the circle
at JSON.stringify (<anonymous>)
我这么用的
在 send 发送的时候报错:
返回给前端的 json 格式是什么标准,必须配合 genesis-remote 来使用么?
需要我自己解决回环问题?自己拆解回环了前端可能还原不回来了。
The text was updated successfully, but these errors were encountered: