Search code examples
webpackwebpack-cli

How to solve [webpack-cli] TypeError: cli.isMultipleCompiler is not a function


I got stock with with error that I dont understand, I have tried a lot of things like reinstalling all the dependencies but it does not work any idea? Here is the error prompt:

No production canister_ids.json found. Continuing with local
[webpack-cli] TypeError: cli.isMultipleCompiler is not a function
    at Command.<anonymous> (/Users/davidmartinezgil/proyect/node_modules/@webpack-cli/serve/lib/index.js:146:35)
    at async Promise.all (index 1)
    at async Command.<anonymous> (/Users/davidmartinezgil/proyect/node_modules/webpack-cli/lib/webpack-cli.js:1674:7)

Solution

  • I had a similar error trying to run a Jhipster app, the error is:

    [webpack-cli] TypeError: cli.isMultipleCompiler is not a function
    at Command.<anonymous> (C:\Users\doe\folder\MyApp\node_modules\@webpack-cli\serve\lib\index.js:146:35)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Promise.all (index 1)
    at async Command.<anonymous> (C:\Users\doe\folder\MyApp\node_modules\webpack-cli\lib\webpack-cli.js:1674:7)
    

    Some suggest to update the webpack-cli from 4.9.2 to 4.10.0

    For me works and could run npm start

    I hope works for you.

    References from webpack issues