TypeError Cannot read property 'component---src-pages-index-tsx' of undefined

I encountered this error

error

I was not able to fix this problem for a while, but I figured it out.

clear site data

Open devtools and select application

select

Then, click clear site data


Written by Yasuhiro Ito
Software engineer

© 2021, Yasuhiro Ito