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.

this github

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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -