configuration.module has an unknown property 'loaders'

前端 未结 5 1209
生来不讨喜
生来不讨喜 2020-12-12 17:59

my output of error:

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

5条回答
  •  难免孤独
    2020-12-12 18:15

    Use rules in webpack 4 instead of loaders.

    https://webpack.js.org/concepts/loaders/

提交回复
热议问题