Links dont load content, but stay in a loading stage

I’m sure this has been asked multiple times before, but I could not find another thread with the issue.

On deployment, When a user clicks on one of the nav buttons, the site goes into a loading state and stays that way, the URL changes to the correct one, and on-page reload the proper section loads. This does not happen when I run my project with NPM run dev.

My first thought was that this was an issue with the chakra template, but the problem still persists by changing the theme to the mars template.

The app is deployed trough Vercel