ng build -prod errors with 1.7.0-RC.0
See original GitHub issueVersions
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:
- Created 6 years ago
- Reactions:3
- Comments:7
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
npm install copy-webpack-plugin@4.3.0 is solved the problem
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.