adrianhajdin / project_google_clone

Google Clone App powered by RapidAPI
443 stars 125 forks source link

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

Open PeroyNel opened 2 years ago

PeroyNel commented 2 years ago

@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.

Enz000 commented 2 years ago

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 👍

jatin711-debug commented 2 years ago

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

aindriu80 commented 2 years ago

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

DarrenWayn commented 2 years ago

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

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