webpack-contrib / postcss-loader

PostCSS loader for webpack
MIT License
2.86k stars 211 forks source link

I am using react js for development , after hiting npm start , I am gettitng error #644

Closed AtulKumar004 closed 1 year ago

AtulKumar004 commented 1 year ago

Bug report

Actual Behavior

Expected Behavior

How Do We Reproduce?

Please paste the results of npx webpack info here, and mention other relevant information

AtulKumar004 commented 1 year ago

Error : Module build failed (from ./node_modules/postcss-loader/dist/cjs.js): Error: PostCSS plugin postcss-flexbugs-fixes requires PostCSS 8. Migration guide for end-users: https://github.com/postcss/postcss/wiki/PostCSS-8-for-end-users at Processor.normalize (C:\Users\atulk\Dropbox\My PC (LAPTOP-8LOV70BS)\Desktop\Oyelabs\InstaService\instaService_Admin\node_modules\postcss\lib\processor.js:153:15) at new Processor (C:\Users\atulk\Dropbox\My PC (LAPTOP-8LOV70BS)\Desktop\Oyelabs\InstaService\instaService_Admin\node_modules\postcss\lib\processor.js:56:25) at postcss (C:\Users\atulk\Dropbox\My PC (LAPTOP-8LOV70BS)\Desktop\Oyelabs\InstaService\instaService_Admin\node_modules\postcss\lib\postcss.js:55:10) at Object.loader (C:\Users\atulk\Dropbox\My PC (LAPTOP-8LOV70BS)\Desktop\Oyelabs\InstaService\instaService_Admin\node_modules\postcss-loader\dist\index.js:96:17) at runMicrotasks () at processTicksAndRejections (internal/process/task_queues.js:95:5)

alexander-akait commented 1 year ago

Please look at

PostCSS plugin postcss-flexbugs-fixes requires PostCSS 8.

It means you use postcss v7 you can chech it using npm ls postcss, so you need to update postcss to v8, you can do it in package.json and then install dependecies

Feel free to feedback