This can be fixed by adding a visible="true" attribute to VerticalTimelineElement.
In my case. this is what the fixed code looked like in NextJs:
Below is my code https://i.sstatic.net/1KyZOYE3.png