question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ng Serve fails at 95% - TypeError: callbacks[i] is not a function

See original GitHub issue

Versions

Angular CLI: 1.6.8
Node: 9.5.0
OS: darwin x64
Angular: 5.2.4
@angular/cli: 1.6.8
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.29
@angular-devkit/schematics: 0.0.52
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.8
@schematics/angular: 0.1.17
typescript: 2.5.3
webpack: 3.10.0

  MacOS High Sierra 10.13.3

Repro steps

MacBook-Pro:~ daniel$ ng new test-proj … Installed packages for tooling via npm. Successfully initialized git. Project ‘test-proj’ successfully created.

MacBook-Pro:~ daniel$ cd test-proj/

MacBook-Pro:test-proj daniel$ npm install up to date in 6.008s

MacBook-Pro:test-proj daniel$ ng serve

Observed behavior

** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
 95% emitting/Users/daniel/test-proj/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:40
		callbacks[i](err, result);
		            ^

TypeError: callbacks[i] is not a function
    at Storage.finished (/Users/daniel/test-proj/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:40:15)
    at /Users/daniel/test-proj/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:77:9
    at /Users/daniel/test-proj/node_modules/graceful-fs/polyfills.js:287:18
    at FSReqWrap.oncomplete (fs.js:167:5)

Desired behavior

For build to be 100% successful and served to browser

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:152
  • Comments:184 (6 by maintainers)

github_iconTop GitHub Comments

139reactions
danielszenasicommented, Feb 8, 2018

npm install copy-webpack-plugin@4.3.0 solved the problem

58reactions
tsvetomircommented, Feb 8, 2018

Please use reactions for “me too” comments. My inbox would appreciate it, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular CLI gives me "TypeError: callbacks[i] is not a function ...
is not a function" when I "ng serve" - Stack Overflow. Stack Overflow for Teams – Start collaborating and sharing organizational knowledge.
Read more >
TypeError: callback is not a function in JavaScript | bobbyhadz
The "callback is not a function" error occurs when we define a callback parameter to a function, but invoke the function without passing...
Read more >
typeerror: destroy is not a function at safelycalldestroy - You.com
The problem is You are having useEffect as an Async Function . ... angular/angular-cliNg Serve fails at 95% - TypeError: callbacks[i] is not...
Read more >
[NODE-1048] TypeError: callback is not a function
Your are probably flooding the node sockets, backing up enough to cause node to fail. The fact that you are splitting up the...
Read more >
48 answers on StackOverflow to the most popular Angular ...
map is not a function in [null]; How to use jQuery with Angular? ... You can get a preview of your application using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found