configuration.module.rules[2].oneOf[4].loader should be a non-empty string

мигрирую свой проект с webpack 4 на webpack 5 но выходит вот такая ошибка:

Creating an optimized production build... Failed to compile.

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[4].loader should be a non-empty string. -> A loader request. ``

ссылка на полный код webpack.config https://pastebin.com/x39AwH1E В интернете говорят сменить loader: на use: но это не помогло Буду благодарен за помощь


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