Expand my Community achievements bar.

404 page

Avatar

Level 4

Hi All,

 

I am working on EDS locally. I have created my repository from boilerplate code.

In my google drive, i have created one home page (google doc with just some texts) parallel to index, nav and footer page, but when i am trying to preview that home page it is rendering fine in main-eds link but upon hitting http://localhost:3000/home, header is loading fine and below i am getting 404 and footer is also not loading in homepage.

if i am separately hitting footer, nav and index in 3000, they are loading fine.

What can be the issue?  I have already updated my fstab.yml file in my local.

 

Case is different when I am creating the repo myself. Everything is working as expected in that case. 

 

shikhasoni1_0-1731350507939.png

 

1 Reply

Avatar

Community Advisor

Hi @shikhasoni1 Seems like there is an issue in the logic where you are trying to read the items from the by-default DOM created in the EDS within your decorate block and there is an error while getting the intial value itself due to non-mandatory field.

 

The statement would look like

const [text, desc, link] = [...block.children].map((row) => row.firstElementChild);

For this, you can either right the logic in the component-model.json to set the default value or add the conditional statement to first check if the value exists then go for firstElementChild.

 

Hope this helps!

Thanks