[Solved] How to solve [webpack-cli] TypeError: cli.isMultipleCompiler is not a function at Command
Node Js
Mohit Mozumder
Problem:
I am using webpack-cli in my project but suddenly I am facing the following error-
TypeError: cli.isMultipleCompiler is not a function at Command
Solution 1:
Al first check if you are in your project directory in your terminal
so, write the following in your terminal-
npm install --save-dev webpack-cli
then write the following-
npm upgrade --save-dev webpack-cli
Hopefully it will solve your problem if not follow the next solution.
Solution 2:
Update webpack-cli to latest by running this command in your terminal-
npm install webpack-cli@4.10.0
Note: Right now, the latest version is 4.10.0
.
Thank you for reading the article. If you face any further problem feel free to ask us.