How to apply global-styles.css (with Tailwind) to global.error.tsx file? #61164
-
|
I'm including global-error.tsx boundary on my NextJS 14.1.0 app router application. I'm already adding the same configuration as the root layout. (html/head/body tags, global styles import, font classNames, etc) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
|
Hi, Yuso!! As the docs states, we have to add the |
Beta Was this translation helpful? Give feedback.
-
|
Sorry to bump this old discussion. But when I do this it doesn't seem to work. Next.js version 14.2.23 |
Beta Was this translation helpful? Give feedback.
Hi, Yuso!!
As the docs states, we have to add the
global-styles.cssto RootLayout for our app to have access to tailwind styles, and considering thatglobal-error.tsxis at the same level as the root layout, you will have to importglobal-styles.cssin this file too!