How to uninstall tailwind from my react application?
Asked Answered
I

3

17

I have installed react-bootstrap and tailwind together for my react app. I'm getting some conflict using both of them. So I want to uninstall tailwind.

Ingar answered 9/5, 2022 at 16:33 Comment(0)
S
12

When you use npm:

npm uninstall tailwindcss

When you use yarn:

yarn remove tailwindcss
Stoneware answered 9/5, 2022 at 17:3 Comment(0)
C
27
npm uninstall tailwindcss

also (uninstall tailwind dev dependencies, if no other package needs them)

npm uninstall autoprefixer
npm uninstall postcss

For yarn users, use:

yarn remove PACKAGE_NAME
Concentric answered 26/7, 2022 at 15:23 Comment(1)
Did not mention to remove these files: postcss.config.js, and tailwind.config.js. Also npm uninstall prettier-plugin-tailwindcss if you have it installed. And finally remove @tailwind base;, @tailwind components; @tailwind utilities; from your global.css.Loney
S
12

When you use npm:

npm uninstall tailwindcss

When you use yarn:

yarn remove tailwindcss
Stoneware answered 9/5, 2022 at 17:3 Comment(0)
I
0
npm remove tailwindcss

Also delete the tailwind.config file.

Isaiah answered 12/1 at 12:35 Comment(3)
Please read How to Answer and edit your answer to contain an explanation as to why this code would actually solve the problem at hand. Always remember that you're not only solving the problem, but are also educating the OP and any future readers of this post.Disappointed
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Miscegenation
remove tailwind.config.js file tooScurry

© 2022 - 2024 — McMap. All rights reserved.