Angular-cli: ng build -prod errors with 1.7.0-RC.0

Created on 8 Feb 2018  路  7Comments  路  Source: angular/angular-cli

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

```

..node_modules\enhanced-resolve\libCachedInputFileSystem.js:40
callbacksi;
^

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

Most helpful comment

npm install [email protected] is solved the problem

All 7 comments

I am the same. The same problem with 1.6.8 too

I have the same problem.

.../node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:40
        callbacks[i](err, result);
                    ^
TypeError: callbacks[i] is not a function

Versions

@angular/core": "^5.2.4
@angular/cli": "^1.6.8
Node 9.4.0

Dependencies

"webpack": "3.10.0",
"enhanced-resolve": "3.4.1",

Duplicate of #9550

npm install [email protected] is solved the problem

npm install [email protected] is solved the problem

not working form me

npm install [email protected] also worked for me

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hareeshav picture hareeshav  路  3Comments

NCC1701M picture NCC1701M  路  3Comments

jbeckton picture jbeckton  路  3Comments

JanStureNielsen picture JanStureNielsen  路  3Comments

rajjejosefsson picture rajjejosefsson  路  3Comments