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

extends-post-css-plugins example doesn't work #417

Closed
AndrejGajdos opened this issue May 1, 2022 · 3 comments
Closed

extends-post-css-plugins example doesn't work #417

AndrejGajdos opened this issue May 1, 2022 · 3 comments

Comments

@AndrejGajdos
Copy link

I tried this example with CRA v5, but it doesn't work. You can check sample repo here where I tried to use postcss-color-rgb. You can run the project, but the css file is not processed.

At first I tried craco 6.4.3, but I was getting this issue. When I replaced postcss with postOptions, I didn't get any errors, but the css is not processed. Then I came across this suggestion and tried both postcss and postOptions, but the css is still not processed.

@dbgordon09
Copy link

Can confirm I am also dealing with this issue. It seems that craco is not correctly extending postcss.

Will post here if I manage to come up with a work around, please do the same 😃

@SophieAnn
Copy link

Does someone has an update or a workaround for this? I am struggeling with the same problem and can't use postcss, always getting a compile failing error TypeError: plugin is not a function at new Promise ()).
I am using the latest craco version. I can't update any other versions, I am using:
"react-scripts": "^4.0.3"
"webpack": "4.44.2"

@dilanx dilanx assigned dilanx and unassigned stevenewald and dilanx Oct 2, 2022
@dilanx
Copy link
Owner

dilanx commented Oct 2, 2022

@AndrejGajdos I just tested your example repo with CRA 5 using the latest craco 7 alpha and it worked as expected. I tried changing the background color in the App.css file and it updated properly. Are you able to reproduce the issue using the latest alpha of craco 7?

@dbgordon09 is this still an issue for you as well?

@SophieAnn what version of craco are you using?

@dilanx dilanx closed this as not planned Won't fix, can't repro, duplicate, stale Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

5 participants