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.

Tailwind 2.0 with Angular using ng-neat

See original GitHub issue

Hi Team,

I’ve just installed Tailwind 2.0 on my project and hit a number of errors. I’ve instead decided to create a new project from scratch to see if I can get it implemented into a fresh Angular project and work from there.

I created a new Angular project with the Angular CLI and then used ng-neat (https://github.com/ngneat/tailwind) to install the prerequisites to get going. The error received upon trying to build (ng-serve) is:

Error: Cannot read property 'flags' of undefined

Node is on version 14.15.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
MatthewLHoldencommented, Dec 15, 2020

@RobinMalfait - The repo generated by @hiepxanh works (Thanks very much!), which is a great starting point for me (as all angular 9 ones failed from scratch). So feel free to close this issue and I’ll work with that repo as a baseline for the project and try to figure out what went wrong. Thanks for the time and responses all, much appreciated.

0reactions
MatthewLHoldencommented, Dec 15, 2020

From looking at your reproduction, it looks like you’re using Angular 9. If there is not a specific reason to use that version, I’d recommend using the latest version (Angular 11).

Thank you. A9 is what my production project is live on at the moment and I was hesitant about upgrading anything unnecessarily, especially if I’m not 100% sure it would resolve my errors with Tailwind. Do you think that’s the cause here? If so, I’ll try an update today 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Setup TailwindCSS in Angular the easy way
The easiest way to use TailwindCSS in your Angular app with version less than 11.2.0 in my personal opinion is by using the...
Read more >
Angular Ngneat Tailwind (forked) - StackBlitz
A angular-cli project based on rxjs, tslib, postcss, zone.js, tailwind, tailwindcss, autoprefixer, @angular/core, @angular/forms, @angular/common, ...
Read more >
Tutorial: Add Tailwind CSS to Angular in under 3 minutes!
In this tutorial, I will show you how to add TailwindCSS to your Angular application using @ ngneat / tailwind.0:00 Introduction0:10 Installing ...
Read more >
What is the exact solution of using Tailwind 2 with Angular 11 ...
Check this github.com/ngneat/tailwind. – Chellappan வ. Dec 19, 2020 at 17:23. Your issue seems to be in angular.json.
Read more >
ngneat/tailwind - - Tailwind CSS integration for Angular.
ngneat /tailwind was made with tailwind CSS. ... Use Tailwind classes within any CSS-in-JS library. ... Figma library with Tailwind CSS v2 colors....
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