Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tailwind JIT mode not updating styles #54

Closed
timlrx opened this issue May 26, 2021 · 2 comments
Closed

Tailwind JIT mode not updating styles #54

timlrx opened this issue May 26, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@timlrx
Copy link
Owner

timlrx commented May 26, 2021

Problem

Sometimes the tailwind jit engine breaks in dev mode and new styles added is not reflected in the application. See related issue in: tailwindlabs/tailwindcss#4081

Possible solutions

  1. As a temporary patch, try modifying the tailwind config file or deleting the .next folder and restart the dev server
  2. If you are looking for a more permanent fix, downgrading to webpack v4 supposedly helps. In next.config.js:
future: {
    webpack5: false,
},
  1. Another fix would be to opt-out of jit mode, by deleting this line in tailwind.config.js

We will update to the newest version of tailwind css when the problem is fixed, but otherwise, there are no further plans to update the template for now.

@timlrx timlrx added the bug Something isn't working label May 26, 2021
@DoctorDerek
Copy link
Contributor

DoctorDerek commented May 26, 2021 via email

@timlrx
Copy link
Owner Author

timlrx commented Jun 27, 2021

Should be fixed in the recent upgrade - #88

@timlrx timlrx closed this as completed Jun 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants