A PostCSS Plugin was passed as an array but did not provide its configuration ('autoprefixer').
Unanswered
Skye Terrier posted this in #help-forum
Skye TerrierOP
A PostCSS Plugin was passed as an array but did not provide its configuration ('autoprefixer').
Error: Malformed PostCSS ConfigurationDo we have to add custom postcss config file to make this work ?
17 Replies
What is your configuration? Normally it looks like:
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
}Skye TerrierOP
I mean i don't have postcss at all thats what I asked if we always need one ?🤔
so are you trying to use PostCSS in your Next.js project?
if not, ensure postcss configuration doesn't exist in your project
Skye TerrierOP
No i am just trying to run the app and it is throwing this error in the command line
Skye TerrierOP
okay so once i added postcss file with this
it worked
module.exports = {
plugins: {
autoprefixer: {}
}
}it worked
Why is that ?
Next app dont work without postcss file ?
run the app and it is throwing this error in the command lineYou're providing too little information about your circumstances and problem, what is your project structure? and what have you installed in dependency
@fuma if not, ensure postcss configuration doesn't exist in your project
Surely if you don't need postcss in your project, please check your dependencies. A new Next.js app without postcss worked for me
Skye TerrierOP
This is not a new next app i think i simply boostrapped it with create-next-app 7 months ago and now just trying to run it
it is on next 13
maybe running create next app again? I can't reproduce your problem
Skye TerrierOP
Yeah i dont think it will happen on latest
Skye TerrierOP
but i want to know why is this happening
Then you should provide a minimum reproducible repo, we aren’t magicians
Dunker
tailwind works with postcss