Discussions
Bug in /discuss (React SSR Error)
9 months ago by null
There is a bug in the latest Readme release for the discussion forum.
If you are logged in or active on any Readme site:
- Go to /discuss e.g. https://sample-threes.readme.io/discuss
- Open any post --> Works fine
- Open the URL in a new window directly e.g. https://sample-threes.readme.io/discuss/65e9e84b09a04a00644d84e5 --> Below error in console
Doesn't seem to happen if you aren't logged in.
65e9f0775e2afa0010f6e856:24 React SSR Error: TypeError: (0 , n.isPlainObject) is not a function
at Object.isText (/app/packages/react/dist/hub/node/7617.c02f9e8a6f576fb94607.js:1:136234)
at Object.isNode (/app/packages/react/dist/hub/node/7617.c02f9e8a6f576fb94607.js:1:122292)
at /app/packages/react/dist/hub/node/7617.c02f9e8a6f576fb94607.js:1:122437
at Array.every (<anonymous>)
at Object.isNodeList (/app/packages/react/dist/hub/node/7617.c02f9e8a6f576fb94607.js:1:122424)
at /app/packages/react/dist/hub/node/7617.c02f9e8a6f576fb94607.js:1:74569
at Ga (/app/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:28:265)
at Object.useState (/app/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:31:35)
at exports.useState (/app/node_modules/react/cjs/react.production.min.js:25:281)
at Wt (/app/packages/react/dist/hub/node/7617.c02f9e8a6f576fb94607.js:1:74545)
at d (/app/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:36:498)
at $a (/app/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:39:16)
at b.render (/app/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:44:476)
at b.read (/app/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:44:18)
at renderToString (/app/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:54:364)
at extractChunks (/app/packages/react-interop/dist/middleware/react.js:66:21)
at res.locals.renderReactApp (/app/packages/react-interop/dist/middleware/react.js:373:16)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /app/packages/hub/dist/controllers/discuss.js:164:30
Also looking forwrad to better spam control with post approvals and email/IP block, default links to be nofollow
etc