After deploying a Next app to Vercel, I'm getting the following error code:
Uncaught (in promise) DOMException: Document.querySelector: 'style[data-href="https://fonts.googleapis.com/css2?family=Mulish:wght@400;500;600;700;800;900&display=swap" rel="stylesheet"]' is not a valid selector
Right now I'm calling this link through API on a whitelabel application in NextJS. I currently have a Layout component which wraps my application and it's called on _app.tsx.
This error doesn't occur on my local Next Server, only appears in production as you can see here:
The code is wrapped on a Head tag as following:
<Head>
<title>{course?.title}</title>
<meta name="description" content={course?.short_description} />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href={brand?.settings?.fonts?.font_link} rel="stylesheet" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" />
</Head>
Has anybody faced this before? Any ideas of what is happening?
