[webpack-cli] TypeError: compiler.plugin is not a function

This error may cause the webpack plugins. Webpack plugins that are not configured properly will cause the issue and removing the plugin will resolve the error.

Check for your webpack configuration file

It may contain a webpack plugin that is not configured

Check for the highlighted section on the above image and you can see that the error is causing by the webpack Live Reload Plugin because this plugin is not configured in the webpack configuration file.

Removing this plugin will resolve the error and the same is applied for other webpack plugins too.

Follow TechBiriyani on FacebookTwitter to get all the latest updates.

By Shahas Nizar

A passionate blogger and a tech enthusiast who is always keen and awaiting to know about fully fledged new technologies who's currently using iPhone 12 as a part of daily routine. You can spot me @ #facebook, #twitter & #Google +

Leave a Reply