understanding-astro-book icon indicating copy to clipboard operation
understanding-astro-book copied to clipboard

Cannot read properties of undefined (reading 'description')

Open sgalcheung opened this issue 1 year ago • 0 comments

At CH4, TSX handles two children nodes with wrong https://github.com/understanding-astro/understanding-astro-book/blob/16a0a70d6e072fd98630765b5ae07b35947d0fd2/ch4.md?plain=1#L896

TypeError: Cannot read properties of undefined (reading 'description') at UpvoteContent (eval at instantiateModule (file:///Users/sgalcheung/.../astro-islands-showcase/node_modules/astro/node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:52640:24), :13:75) at Tester (eval at instantiateModule (file:///Users/sgalcheung/.../astro-islands-showcase/node_modules/astro/node_modules/vite/dist/node/chunks/dep-mCdpKltl.js:52640:24), :46:18) at renderWithHooks (/Users/sgalcheung/.../astro-islands-showcase/node_modules/react-dom/cjs/react-dom-server.node.development.js:5724:16) at renderIndeterminateComponent (/Users/sgalcheung/.../astro-islands-showcase/node_modules/react-dom/cjs/react-dom-server.node.development.js:5798:15) at renderElement (/Users/sgalcheung/.../astro-islands-showcase/node_modules/react-dom/cjs/react-dom-server.node.development.js:6023:7) at renderNodeDestructiveImpl (/Users/sgalcheung/.../astro-islands-showcase/node_modules/react-dom/cjs/react-dom-server.node.development.js:6181:11) at renderNodeDestructive (/Users/sgalcheung/.../astro-islands-showcase/node_modules/react-dom/cjs/react-dom-server.node.development.js:6153:14) at retryTask (/Users/sgalcheung/.../astro-islands-showcase/node_modules/react-dom/cjs/react-dom-server.node.development.js:6605:5) at performWork (/Users/sgalcheung/.../astro-islands-showcase/node_modules/react-dom/cjs/react-dom-server.node.development.js:6653:7) at Immediate. (/Users/sgalcheung/.../astro-islands-showcase/node_modules/react-dom/cjs/react-dom-server.node.development.js:6980:12) at process.processImmediate (node:internal/timers:476:21)

replace to this export const UpvoteContent = (props: any) => { it works well.

sgalcheung avatar Aug 04 '24 14:08 sgalcheung