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

Just change from “loaders” to “rules” in “webpack.config.js”

Because loaders is used in Webpack 1, and rules in Webpack2.
You can see there have differences.

Leave a Comment