Click here to Skip to main content
15,609,649 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
When I try to run my angular project using "npm start" the following error is generated.

Terminal
 Generating browser application bundles (phase: building)...D:\Evesys\Ticketing\Lamda\NewV\BMSDesk_CLI\BMSDesk_CLI_Web\node_modules\loader-runner\lib\LoaderRunner.js:106
                        throw new Error("callback(): The callback was already called.");
                              ^

Error: callback(): The callback was already called.
    at context.callback (D:\Evesys\Ticketing\node_modules\loader-runner\lib\LoaderRunner.js:106:10)
    at D:\Evesys\Ticketing\node_modules\@ngtools\webpack\src\loader.js:100:9
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)


What I have tried:

I have tried to delete the "node modules" folder and reinstall npm "npm install" but it is not resolved.
Posted
Updated 16-Jan-23 22:06pm

1 solution

There seems to be multiple solutions online -

1. Update all packages
npm install -g npm-check-updates
ncu -u
npm install


2. Use a different terminal or ensure your current terminal is updated. Some reckon Powershell 7 did it or going back to cmd over git bash also did the trick.

Have a look at THIS LINK from Stack Overflow for a possible solution.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900