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 build -prod errors with 1.7.0-RC.0

See original GitHub issue

Versions

Angular CLI: 1.7.0-rc.0 Node: 9.5.0 OS: win32 x64 Angular: 5.2.1 … animations, common, compiler, compiler-cli, core, forms … http, language-service, platform-browser … platform-browser-dynamic, router

@angular/cdk: 5.1.0 @angular/cli: 1.7.0-rc.0 @angular/flex-layout: 2.0.0-beta.10-4905443 @angular/material-moment-adapter: 5.1.0 @angular/material: 5.1.0 @angular-devkit/build-optimizer: 0.3.1 @angular-devkit/core: 0.3.1 @angular-devkit/schematics: 0.3.1 @ngtools/json-schema: 1.2.0 @ngtools/webpack: 1.10.0-rc.0 @schematics/angular: 0.3.1 @schematics/package-update: 0.3.1 typescript: 2.4.2 webpack: 3.10.0

Repro steps

  • ng build -prod

Observed behavior

<!-- Normally this includes a stack trace and some more information. -->
..\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:40
                callbacks[i](err, result);
                            ^

TypeError: callbacks[i] is not a function

### Desired behavior
Application compiled without any error


### Mention any other details that might be useful (optional)
It was working fine with 1.7.0-beta.3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:7

github_iconTop GitHub Comments

3reactions
surajjadhav720commented, Feb 8, 2018

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

0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular.During ng build --prod get error : Uncaught (in ...
Getting following error when using external angular elements (webcomponents) in my angular application. Uncaught (in promise): TypeError: ...
Read more >
ng build - Angular
Option Description Value Type Default Value ‑‑aot Build using Ahead of Time compilation. boolean true ‑‑base‑href Base url for the application being built. string ‑‑delete‑output‑path Delete...
Read more >
Angular Project Publish Error at 92% #11326 | Support Center
Tried both commands shown below. npm run publish npm run ng-high-memory --build --prod. Increased memory to 40240.
Read more >
npm ERR! code ELIFECYCLE - MSDN - Microsoft
The error output was: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! quickapp-pro@2.1.0 start: `concurrently --kill-others "ng serve" ...
Read more >
Uncaught Error: Cannot find module "tslib" when update to 3.9.2
Hey, I am facing with this issues, please advice. ... the new angular-cli version… using ng build --prod --build-optimizer=false worked for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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