#Styles in global-error.tsx not being applied

1 messages · Page 1 of 1 (latest)

smoky plank
#

In my global-error-tsx file I import my styles the same way as in my root layout.tsx:

'use client'
import "@/assets/styles/app.css";
...

When a global error is triggered and I inspect the page, no CSS is applied at all.
When I look in the netwrok tab, both the CSS and Google font file seem to have been loaded, so all the styles are there. But the files are not added to the page's <head> section.