Skip to main content

cli.isMultipleCompiler is not a function

 An error is reported when using webpack-dev-server to build a development server, and the error message is as follows:[webpack-cli] TypeError: cli.isMultipleCompiler is not a function.

Solution:

Directly upgrade webpack-cli version to 4.10.0
npm i webpack-cli@4.10.0 -D

Comments

Popular posts from this blog

ES6 arrow functions

 In ES6, in addition to the new features of let and const, arrow functions are the most frequently used new features. But this feature is not unique to ES6. Arrow functions, as the name suggests, are functions defined using arrows (=>) and belong to a class of anonymous functions. It allows us to write smaller function syntaxes. The code of arrow functions is simpler and more flexible to write.

Three external exposure methods and introduction methods of export in ES6

 In the JS era a few years ago, there was no concept of modularity. However, as front-end projects become larger and more complex, it is urgent to introduce the concept of modularity. Before ES6, the community developed some modular solutions, such as: CommonJS and AMD and CMD. These are slowly being replaced by import and export after ES6. Export is used to specify the interface that the module opens to the outside world. Regardless of whether you define it or not, the module exported by export is in strict mode and cannot be used in embedded scripts. The import command is used to import functionality provided by other modules.