TypeError: Cannot read properties of undefined (reading 'length')

What did you do to get that error?
It looks like someone else got the same error.

I don’t know, I’m just following tutorial youtube https://www.youtube.com/watch?v=hhkWQPorBKQ&t=134s