Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading 'description') #10

Open
sgalcheung opened this issue Aug 4, 2024 · 0 comments
Open

Cannot read properties of undefined (reading 'description') #10

sgalcheung opened this issue Aug 4, 2024 · 0 comments

Comments

@sgalcheung
Copy link

sgalcheung commented Aug 4, 2024

At CH4, TSX handles two children nodes with wrong

export const UpvoteContent = ({ props }) => {

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant