Skip to content
Discussion options

You must be logged in to vote

The repository you shared appears inadequate for implementing the Tailwind project since it lacks key files such as _app.js, document.js, index.js, tailwind.config.js, and next.config.js. This approach differs from the usual Create Next App migration from Create React App.

I suggest creating a new Next.js project using the command "npx create-next-app@latest" and selecting the option to configure Tailwind during setup.

_app.js should be wrapped with
such as:

    <PrimeReactProvider value={{ unstyled: true, pt: Tailwind }}>
      <Component {...pageProps} />
    </PrimeReactProvider> 

Also, don't forget to import in _app.js

import { PrimeReactProvider } from "primereact/api".
import Tail…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Erzalt
Comment options

@habubey
Comment options

@Erzalt
Comment options

@habubey
Comment options

Answer selected by habubey
@Erzalt
Comment options

@habubey
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants