nodejs / help

:sparkles: Need help with Node.js? File an Issue here. :rocket:
1.46k stars 279 forks source link

npm run dev command is not working #4453

Closed rizwanshah1098 closed 1 month ago

rizwanshah1098 commented 1 month ago

Version

v22.5.1

Platform

Visual Studo terminal

Subsystem

Visual Studio

What steps will reproduce the bug?

I try to install install tailwind css using post css 1-Install Tailwind CSS npm install -D tailwindcss postcss autoprefixer npx tailwindcss init

2-Add Tailwind to your PostCSS configuration module.exports = { plugins: { tailwindcss: {}, autoprefixer: {}, } } 3-Configure your template paths /* @type {import('tailwindcss').Config} / module.exports = { content: ["./src/*/.{html,js}"], theme: { extend: {}, }, plugins: [], }

4-Add the Tailwind directives to your CSS 5-Start your build process npm run dev

How often does it reproduce? Is there a required condition?

When run this command showing only single time

What is the expected behavior? Why is that the expected behavior?

Hello world!

Tailwind classes should be working

What do you see instead?

Just simple text hello world

Additional information

No response

rizwanshah1098 commented 1 month ago

You've not any solution?

preveen-stack commented 1 month ago

https://tailwindcss.com/docs/installation/using-postcss

Are you stuck? Setting up Tailwind with PostCSS can be a bit different across different build tools. Check our framework guides to see if we have more specific instructions for your particular setup. Explore our framework guides

Perhpas the framework guides mentioned in tailwind website can give you some pointers

RedYetiDev commented 1 month ago

If you're facing an issue with a specific library, in this case Tailwind, I suggest opening an issue with the project itself before opening one here. Thank you!