Oryx icon indicating copy to clipboard operation
Oryx copied to clipboard

Module build failed: Error: No PostCSS Config found in: /node_modules/element-ui/lib/theme-chalk 2025-12-01T06:11:08.628974347Z at /node_modules/postcss-load-config/src/index.js:91:15

Open fanweiyan-coder opened this issue 3 weeks ago • 0 comments

Hi Team,

I currently have a problem with a Node.js 20 project. When deploying it to Azure and using Oryx Build, it always gives an error:

Module build failed: Error: No PostCSS Config found in: /node_modules/element-ui/lib/theme-chalk 2025-12-01T06:11:08.628974347Z at /node_modules/postcss-load-config/src/index.js:91:15

I can confirm that the project is running normally locally.

I would like to ask if it is because I am using an outdated version of PostCSS? the webpack version is 3. The contents of postcss.config.js and .postcssrc.js are the same, and both are located in the wwwroot directory.

"postcss": "^6.0.23", "postcss-import": "^11.0.0", "postcss-loader": "^2.0.8", "postcss-url": "^7.2.1",

fanweiyan-coder avatar Dec 01 '25 08:12 fanweiyan-coder