laurabeatris.com icon indicating copy to clipboard operation
laurabeatris.com copied to clipboard

TypeError: Cannot read property 'categories' of undefined components/ProjectFilters/index.tsx

Open Cally99 opened this issue 2 years ago • 2 comments

Hi there,

Thanks for sharing your lovely portfolio site. It's really well made. I've tried to run this project but I have an error on line 46.

  const filters = [
    {
      title: 'Categories',
  
      items: transformedStack.categories

    }
  ]

TypeError: Cannot read property 'categories' of undefined

Do you know how to fix this error? Thank you!

Cally99 avatar Jun 11 '22 01:06 Cally99

I think you would need to have the CMS running in order to the API data

LauraBeatris avatar Jun 24 '22 16:06 LauraBeatris

Thanks Laura for responding. I don't see in the documentation how to start the CMS server? Is there an endpoint I need to map or when I run yarn dev should it start?

Cally99 avatar Jul 14 '22 00:07 Cally99

@Cally99 The CMS data comes from my personal GraphCMS workspace, thus I'm not able to share it

So it's hard to run this repo in other machines if you don't have access to the source of data I'm using, perhaps having some sort of mock server would solve this

LauraBeatris avatar Aug 28 '22 13:08 LauraBeatris

@Cally99 I'll close this issue and clarify the README.md file that it's not possible to fully execute the repo without having access to the CMS data

LauraBeatris avatar Aug 28 '22 13:08 LauraBeatris