Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PeroyNel opened this issue Nov 25, 2021 · 4 comments

Comments

@PeroyNel
Copy link

@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
Copy link

Enz000 commented Dec 27, 2021

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
Copy link

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
Copy link

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

@DarrenWayn
Copy link

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants