fuwari
fuwari copied to clipboard
TypeError: Cannot read properties of undefined (reading 'data')
- pnpm new-post golang
- put some arbitrary content
- git add .
- git commit
- git push
- got below error
TypeError: Cannot read properties of undefined (reading 'data')
at /home/kirkzhang/github_workspace/fuwari/src/pages/[...page].astro:17:18
at [...page] (/home/kirkzhang/github_workspace/fuwari/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/astro/dist/runtime/server/astro-component.js:16:12)
at callComponentAsTemplateResultOrResponse (file:///home/kirkzhang/github_workspace/fuwari/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/astro/dist/runtime/server/render/astro/render.js:90:31)
at renderToAsyncIterable (file:///home/kirkzhang/github_workspace/fuwari/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/astro/dist/runtime/server/render/astro/render.js:118:32)
at renderPage (file:///home/kirkzhang/github_workspace/fuwari/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/astro/dist/runtime/server/render/page.js:31:30)
at lastNext (file:///home/kirkzhang/github_workspace/fuwari/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/astro/dist/core/render-context.js:126:31)
at async callMiddleware (file:///home/kirkzhang/github_workspace/fuwari/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/astro/dist/core/middleware/callMiddleware.js:21:10)
at async RenderContext.render (file:///home/kirkzhang/github_workspace/fuwari/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/astro/dist/core/render-context.js:149:22)
at async handleRoute (file:///home/kirkzhang/github_workspace/fuwari/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/astro/dist/vite-plugin-astro-server/route.js:209:18)
at async run (file:///home/kirkzhang/github_workspace/fuwari/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected][email protected]/node_modules/astro/dist/vite-plugin-astro-server/request.js:40:14)
Could you please provide more detailed information, such as the operating system and Node.js version, or alternatively, a demo that reproduces the issue?
You can try switching to node version 18. I tried compiling under node version 22 and encountered the same error.