strapi / starters-and-templates

Monorepo for all official Strapi v4 templates
MIT License
327 stars 117 forks source link

TypeError: Cannot destructure property 'metadata' of 'global.attributes' #63

Open AF20181 opened 1 year ago

AF20181 commented 1 year ago

This error occurs if you set a slug to the "Content-Manager" -> "Home" -> "slug" and afterwards re-empty this field.

matek075 commented 1 year ago

Hi, I have the same issue. Can't run starter in localhost:3000 TypeError: Cannot destructure property 'metadata' of 'global.attributes' as it is undefined.

For example here-> pages\_app.js:73:5)

staminna commented 1 year ago

I think it needs to start with a hash key # but it shouldn't completely lose your work and ruin everything as it did for me.

robukh commented 1 year ago

Everyone here is facing this issue. Looking at the pageProps it seems that the metadata exists console.log({...pageProps})

So the issue somewhere deeper. We are all waiting for the fixes from Strapi

matek075 commented 1 year ago

@radzivonobuh @staminna @AF20181 I got info from Strapi contributor in Strapi discord : "strapi templates are not being maintained anymore" . Regrettably there are no official working strapi starters or templates. 😢