npm ERR! code EINVALIDTYPE


(sheikh) #1

Angular Update from 6 to 7

Hallo everyone,

I got some errors after update process.

After updated sucessfully from angular 6 to 7 at build process, it complains some npm errors which I have not seen before so
any help will be usefull.
thanks
Kind regards
Inam

npm link …

npm ERR! code EINVALIDTYPE
npm ERR! typeerror Error: Argument #2: Expected array but got string

npm link …/projektlib --production

npm ERR! code EINVALIDTYPE
npm ERR! typeerror Error: Argument #2: Expected array but got string

Platform Info

Node: 10.13.0
OS: win32 x64
Angular: 7.0.4
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                            Version
------------------------------------------------------------
@angular-devkit/architect          0.6.8
@angular-devkit/build-angular      0.6.8
@angular-devkit/build-ng-packagr   0.6.8
@angular-devkit/build-optimizer    0.6.8
@angular-devkit/core               0.6.8
@angular-devkit/schematics         7.0.6
@angular/cli                       7.0.6
@ngtools/json-schema               1.1.0
@ngtools/webpack                   6.0.8
@schematics/angular                7.0.6
@schematics/update                 0.10.6
ng-packagr                         3.0.6
rxjs                               6.3.3
typescript                         3.1.6
webpack                            4.8.3

(Lars Willighagen) #2

This looks a lot like this issue:

Do you have more detailed logs? Also, I assume ../projektlib still existed after the update?