Error: Cannot read properties of undefined (reading 'data')
avidraghav opened this issue · comments
error Cannot read properties of undefined (reading 'data')
File:
/Users/raghav/VSCodeProjects/voyager/src/pages/blog/[slug].astro:18:33
Code:
17 | const { entry } = Astro.props;
> 18 | const post : BlogSchema = entry.data;
| ^
19 | const { Content } = await entry.render();
20 | ---
Hi, I'm getting above error as I'm trying to run the project on local machine. It's strange because there were no issues in the beginning, I even deployed the website successfully but suddenly it popped up while running the command npm run dev
Project link https://github.com/avidraghav/voyager
resolved