project_google_clone
project_google_clone copied to clipboard
"craco is not recognized as an internal or external command, operable program or batch file." - Error
@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.
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 👍
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
I wouldn't bother with Craco and create-react-app, ViteJS is much easier
// craco.config.js module.exports = { style: { postOptions: { plugins: [ require('tailwindcss'), require('autoprefixer'), ], }, }, }
use this in your craco config file, it should be postOptions