Skip to content

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 #2715

@fanweiyan-coder

Description

@fanweiyan-coder

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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions