Unstyled PT mode with nextJs issue #168
-
Hello, I'm currently working on an application using next and react. However, it's impossible to integrate the use of unstyled mode with the use of Pass through Bootstrap. Does anyone know how to fix this? I don't have much experience with Next. And is it possible to apply all bootstrap styles to primereact elements? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Have you checked out this page, https://primereact.org/bootstrap/#example |
Beta Was this translation helpful? Give feedback.
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:
Also, don't forget to import in _app.js