Visual Studio devops Angular build fail - PullRequest
       33

Visual Studio devops Angular build fail

0 голосов
/ 05 апреля 2019

Я получаю следующую ошибку при сборке на devops Visual Studio.Приложение angular собирается успешно без каких-либо ошибок или предупреждений на моей локальной машине.Но как только я отправляю свой код devops, он терпит неудачу.

##[error]Cmd.exe exited with code '1' 

ERROR in node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.

Я не уверен, почему это происходит, поскольку этот модуль находится в моей кодовой базе

Полный журнал ошибок находится в лазурной

##[section]Starting: ng build
==============================================================================
Task         : Command Line
Description  : Run a command line script using cmd.exe on Windows and bash on macOS and Linux.
Version      : 2.148.0
Author       : Microsoft Corporation
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613735)
==============================================================================
Generating script.
Script contents:
ng build --prod
========================== Starting Command Output ===========================
##[command]"C:\windows\system32\cmd.exe" /D /E:ON /V:OFF /S /C "CALL "D:\a\_temp\6fc36bd3-465a-4f53-b285-bf7394f9804d.cmd""
Your global Angular CLI version (7.2.1) is greater than your local
version (6.2.4). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".

Date: 2019-04-05T12:50:09.381Z
Hash: dc9270fae725f3369d30
Time: 20486ms
chunk {0} runtime.ec2944dd8b20ec099bf3.js (runtime) 1.44 kB [entry] [rendered]
chunk {1} main.9868d9b237c3a48c54da.js (main) 128 bytes [initial] [rendered]
chunk {2} polyfills.85f47f0bf59079cbc23a.js (polyfills) 130 bytes [initial] [rendered]
chunk {3} styles.3e8caf971803565fc40f.css (styles) 313 kB [initial] [rendered]

ERROR in node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.
src/app/services/tokenInterceptor.service.ts(11,10): error TS2305: Module '"D:/a/1/s/node_modules/rxjs/Observable"' has no exported member 'Observable'.

##[error]Cmd.exe exited with code '1'.
##[section]Finishing: ng build

Package.json enter image description here

...