Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema

Перешёл я значит с последнего webpack 4 на webpack 5 и появилась ошибка и я не знаю где её решать

Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
 - configuration.module.rules[2] should be one of these:
   ["..." | object { compiler?, dependency?, descriptionData?, enforce?, exclude?, generator?, include?, issuer?, loader?, mimetype?, oneOf?, options?, parser?, realResource?, resolve?, resource?, resourceFragment?, resourceQuery?, rules?, sideEffects?, test?, type?, use? }, ...]
   -> A rule.
   Details:
    * configuration.module.rules[2].oneOf[6].loader should be a non-empty string.
      -> A loader request.

Может тут проблема в webpack.config.prod https://pastebin.com/zW5ZTKxK


Ответы (0 шт):