rsuite / rsuite

🧱 A suite of React components .
https://rsuitejs.com
MIT License
8.39k stars 929 forks source link

PostCSS loader error #2354

Open pmall opened 2 years ago

pmall commented 2 years ago

What version of rsuite are you using?

^5.6.0

What version of React are you using?

^17.0.2

What version of TypeScript are you using (if any)?

^4.4.2

What browser are you using?

No response

Describe the Bug

Following the exact instructions from use-with-create-react-app page I got this error:

ERROR in ./node_modules/rsuite/styles/index.less (./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[9].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[9].use[2]!./node_modules/resolve-url-loader/index.js??ruleSet[1].rules[1].oneOf[9].use[3]!./node_modules/less-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[9].use[4]!./node_modules/rsuite/styles/index.less)
Module build failed (from ./node_modules/postcss-loader/dist/cjs.js):
ValidationError: Invalid options object. PostCSS Loader has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'plugins'. These properties are valid:
   object { postcssOptions?, execute?, sourceMap?, implementation? }
    at validate

Expected Behavior

No response

To Reproduce

No response

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.