Skip to content
Discussion options

You must be logged in to vote

I think you have a conflict. You have a pages directory, which tells Next.js that you want a /contact page using the Pages Dir Router, but you are not doing any Tailwind loading there.

However, you seen to be using app directory which uses the App Dir Router. While these can be used in the same app, they need different setups.

You typically need an _app file, and there you load the globals that injects Tailwind.

import '@/styles/globals.css'
import type { AppProps } from 'next/app'

export default function App({ Component, pageProps }: AppProps) {
  return <Component {...pageProps} />
}

You have the same problem with pages/work_experience, there's not _app that loads Tailwind for that route.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ryanzidago
Comment options

@ryanzidago
Comment options

@icyJoseph
Comment options

Answer selected by ryanzidago
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants