manuelernestog / astrofy

Astrofy is a free and open-source template for your Personal Portfolio Website built with Astro and TailwindCSS. Create in minutes a website with Blog, CV, Project Section, Store and RSS Feed.

Home Page:https://astrofy-template.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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