Ng has unexpectedly closed (exit code 127)

ng.cmd run app:serve --host=localhost --port=8100
[ng] An unhandled exception occurred: argument fn must be a function
[ng] See “C:\Users\KALEMY~1\AppData\Local\Temp\ng-Ld0PEN\angular-errors.log” for further details.

[ERROR] ng has unexpectedly closed (exit code 127).

    The Ionic CLI will exit. Please check any output above for error details.

Error detail:

[error] TypeError: argument fn must be a function
at Function.wrapfunction [as function] (C:\Users\KalemYazilim\Desktop\coskun_ionic\ionic_muhasebe_cskn\node_modules\depd\index.js:399:11)
at populateConstructorExports (C:\Users\KalemYazilim\Desktop\coskun_ionic\ionic_muhasebe_cskn\node_modules\http-errors\index.js:264:45)
at Object. (C:\Users\KalemYazilim\Desktop\coskun_ionic\ionic_muhasebe_cskn\node_modules\http-errors\index.js:30:1)
at Module._compile (internal/modules/cjs/loader.js:868:30)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:879:10)
at Module.load (internal/modules/cjs/loader.js:731:32)
at Function.Module._load (internal/modules/cjs/loader.js:644:12)
at Module.require (internal/modules/cjs/loader.js:771:19)
at require (internal/modules/cjs/helpers.js:68:18)
at Object. (C:\Users\KalemYazilim\Desktop\coskun_ionic\ionic_muhasebe_cskn\node_modules\send\index.js:15:19)

How can we solve this problem?

@Abdukarimov can you show in your code where this error comes from?

When you are getting this error? i mean app run time/build time/prod build time or something else???

When I run the ionic serve command after creating the application