throw new Error(“Module ‘” + loader.path + “‘ is not a loader (must have normal or pitch function)”);


In webpack 2 automatic-loader-module-name-extension-removed.

Hence, you will have to add -loader to each loader in your config. For example,

 - { test: /.(jpg|png|svg)$/, use: 'url?limit=8192&name=./img/[hash].[ext]'}

 + { test: /.(jpg|png|svg)$/, use: 'url-loader?limit=8192&name=./img/[hash].[ext]'}

For more details, read the migration guide.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *