webpack - css-loader, postcss-loader: Module build failed: Error: No configuration provided for -
i got new computer , tried open older project keep getting error whenever run development , don't understand why. project works on old pc.
i tried updating devdependencies or css-loaders neither worked. , have postcss config file, tried update stylelint too.
error in ./~/css-loader?{"importloaders":1}!./~/postcss-loader!./src/css/style.css module build failed: error: no configuration provided /users/hoyhym/desktop/test/src/css/style.css @ module.exports (/users/hoyhym/desktop/test/node_modules/stylelint/lib/utils/configurationerror.js:8:27) @ stylelint._fullexplorer.load.then.then.config (/users/hoyhym/desktop/test/node_modules/stylelint/lib/getconfigforfile.js:39:13) @ ./src/css/style.css 4:14-142 13:2-17:4 14:20-148 @ multi (webpack)-dev-server/client?http://localhost:3000 webpack/hot/dev-server ./~/react-dev-utils/webpackhotdevclient.js ./src/css/style.css ./src/js/script.js
i had same problem few days ago. seems issue can pop depending on webpack config stored inside project, or calling webpack command from.
try adding options: config: path inside 'postcss-loader'
use: [ { loader: 'css-loader', options: { importloaders: 1 }}, { loader: 'postcss-loader', options: { config: { path: './postcss.config'}}} ]
Comments
Post a Comment