React Hook "useGetStaticProps" cannot be called at the top level

Hello~

I've followed this instruction

I get above when I am building the site.
What should I do?

Hi Yurii,

Can you show me the exact code you're using on these pages?

Thanks.

Hi, Phil

Please look at this

I checked on my side and I got no errors with this. It seems like a linter error. I would try disabling your linter or setting an ignore rule.

Thanks, Phil

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.