question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular 13 Tailwind 3 jit not updating.

See original GitHub issue

What version of Tailwind CSS are you using?

v3.0.8

What build tool (or framework if it abstracts the build tool) are you using?

Angular 13.1.2

What version of Node.js are you using?

16.13.1

What browser are you using?

Chrome

What operating system are you using?

Windows 10

Describe your issue

  1. SImply create new angular project and add tailwind, tailwind configuration.
  2. Change app.component.html with <div class="h-[100px] w-[100px] bg-red-100"></div>
  3. Run first time with ng serve.(It works fine).
  4. Stop dev server
  5. Change app.component.html with <div class="h-[200px] w-[200px] bg-blue-100"></div>
  6. Start dev server again Problem: angular-cli says tailwind is in watch mode but its not refreshing or adding new class. Not only changing classes cause this error. From time to time tailwind just stopped generating style for classes.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

7reactions
alk841commented, Jan 23, 2022

Just-in-Time build css still not working in Angular v13 and Tilewindcss v3.0.15. Can help me someone?

This not work for me. export const environment = { production: false, TAILWIND_MODE: ‘build’ };

Build with firs change save in home component works. Another save not works.

4reactions
zajcmancommented, Feb 9, 2022

you must upgraded from Angular 13.0 to 13.2.2 via the Angular CLI command ng update ( this is solution from Angular: https://github.com/angular/angular-cli/pull/22447 )

Read more comments on GitHub >

github_iconTop Results From Across the Web

TailwindCSS 3 in JIT mode and Angular 13 persistent cache
When I update my project to TailwindCSS 3, all seems to work fine at first but whenever I use new Tailwind classes they...
Read more >
Tailwind css classes does not work until I change and save ...
I had to change something in styles.scss file or tailwind.config.js file and then save it to reflect the new classes! angular · tailwind-css....
Read more >
Just-in-Time Mode - Tailwind CSS
Styles don't update when saving content files ... As of Tailwind CSS v2.2+, the JIT engine depends on PostCSS's directory dependency messages to...
Read more >
How to enable Tailwind JIT compilation mode in your Angular ...
Edit the tailwind.config.js file to enable jit compilation. Update the purge array with the path to your components. If purge is not ......
Read more >
How to Use Tailwind's Just-in-Time Mode in Angular
Set the mode option to jit in our tailwind.config.js file. Set the TAILWIND_MODE environment variable to build or watch . But we also...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found