fuwari icon indicating copy to clipboard operation
fuwari copied to clipboard

TypeError: Cannot read properties of undefined (reading 'data')

Open kirkzhangtech opened this issue 1 year ago • 2 comments

  1. pnpm new-post golang
  2. put some arbitrary content
  3. git add .
  4. git commit
  5. git push
  6. 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)

kirkzhangtech avatar May 30 '24 16:05 kirkzhangtech

Could you please provide more detailed information, such as the operating system and Node.js version, or alternatively, a demo that reproduces the issue?

saicaca avatar Jun 27 '24 05:06 saicaca

You can try switching to node version 18. I tried compiling under node version 22 and encountered the same error.

MasakiMu319 avatar Jul 31 '24 02:07 MasakiMu319