Home > Back-end >  How to solve [webpack-cli] TypeError: cli.isMultipleCompiler is not a function at Command.<anonym
How to solve [webpack-cli] TypeError: cli.isMultipleCompiler is not a function at Command.<anonym

Time:06-21

I'm developing for the internet computer and 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. (/Users/davidmartinezgil/proyect/node_modules/@webpack-cli/serve/lib/index.js:146:35) at async Promise.all (index 1) at async Command. (/Users/davidmartinezgil/proyect/node_modules/webpack-cli/lib/webpack-cli.js:1674:7)

CodePudding user response:

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

CodePudding user response:

so im trying to install the new version of webpack-cli but is not working or they said is the currenty update version, any help on this?

CodePudding user response:

Ensure you are in your project directory in your terminal

first, type the following in your terminal and hit enter

npm install --save-dev webpack-cli

then type the following and hit enter:

npm upgrade --save-dev webpack-cli

it should work

Maybe you will have to do this in every new project you create.

  • Related