project_google_clone icon indicating copy to clipboard operation
project_google_clone copied to clipboard

"craco is not recognized as an internal or external command, operable program or batch file." - Error

Open PeroyNel opened this issue 3 years ago • 4 comments

@22:18 in the tutorial video if you get the "craco is not recognized as an internal or external command, operable program or batch file." error, simply run "npm install @craco/craco --save" or "npm install @craco/craco" to fix it. Make sure to run the install command in your application's root directory.

PeroyNel avatar Nov 25 '21 12:11 PeroyNel

Hey @PeroyNel

Craco is not supported by the last release of tailwind, it's more simple now ! read the doc here https://tailwindcss.com/docs/guides/create-react-app

Hope i help you 👍

Enz000 avatar Dec 27 '21 14:12 Enz000

update react-scripts to latest version i.e ^5.0.0 version and follow Officail Documentation/Guide-> https://tailwindcss.com/docs/guides/create-react-app

jatin711-debug avatar Feb 11 '22 02:02 jatin711-debug

I wouldn't bother with Craco and create-react-app, ViteJS is much easier

aindriu80 avatar May 12 '22 10:05 aindriu80

// craco.config.js module.exports = { style: { postOptions: { plugins: [ require('tailwindcss'), require('autoprefixer'), ], }, }, }

use this in your craco config file, it should be postOptions

DarrenWayn avatar May 12 '22 13:05 DarrenWayn