2

Been trying to fix this for a while and it's becoming quite annoying, help would be really appreciated.

Context

  • using sanity.io cms and I think the error may come from client.js, where the client is created to fetch data from sanity.io

  • using nextjs 13

  • just moved src related folders into a src folder I created and then added absolute imports

  • when refreshing the page the site loads for a splite second then the error shown bellow pops up.

  • using styled-components

    Console error log client.js code nextjs error msg

I expected my Next.js app to load my index page without any errors but instead got a TypeError that I can't reslove after many Google searches

Joe Matkin
  • 21
  • 3

0 Answers0