Kendo Angular 4 Unmet Peer Dependency and找不到模块" rxjs / operators / combineLatest"

时间:2018-02-01 01:35:25

标签: angular npm kendo-ui .net-core kendo-ui-angular2

我正在尝试在Angular 4应用程序中安装Kendo UI,但我遇到了各种错误。

首先,我运行了这个命令:

npm install --save @progress/kendo-angular-dateinputs @progress/kendo-angular-l10n @progress/kendo-angular-intl

它给了我以下输出:

npm WARN saveError Problems were encountered
npm WARN saveError Please correct and try again.
npm WARN saveError invalid: have rxjs@5.4.2 (expected: 5.5.0) C:\projects\myapp\node_modules\rxjs
npm WARN saveError peer invalid: rxjs@^5.5.0, required by @progress/kendo-angular-dateinputs@2.0.0
npm WARN saveError peer invalid: rxjs@^5.5.0, required by @progress/kendo-angular-popup@2.0.0
npm WARN saveError extraneous: rxjs@5.4.2 C:\projects\myapp\node_modules\rxjs
npm WARN saveError extraneous: symbol-observable@1.0.4 C:\projects\myapp\node_modules\symbol-observable
MyApp.web@0.0.0 C:\projects\myapp\
+-- @progress/kendo-angular-dateinputs@2.0.0
| +-- @progress/kendo-angular-popup@2.0.0
| | `-- @progress/kendo-popup-common@1.2.3
| +-- @progress/kendo-date-math@1.1.1
| `-- UNMET PEER DEPENDENCY rxjs@^5.5.0
+-- @progress/kendo-angular-intl@1.3.0
| `-- @telerik/kendo-intl@1.3.2
+-- @progress/kendo-angular-l10n@1.0.5
`-- UNMET PEER DEPENDENCY rxjs@5.4.2 invalid

在做了一些阅读之后,我虽然这可能只是一个警告,所以我继续,并添加了

import { IntlModule } from '@progress/kendo-angular-intl';
import { DateInputsModule } from '@progress/kendo-angular-dateinputs';

到我的app模块。

当我运行应用程序时,我在控制台中收到以下错误:

Uncaught Error: Cannot find module "rxjs/operators/combineLatest"
    at Object.<anonymous> (messages.js:23)
    at __webpack_require__ (bootstrap ce6c1efdfd0ad0f85363:657)
    at fn (bootstrap ce6c1efdfd0ad0f85363:85)
    at Object.<anonymous> (messages.js:17)
    at __webpack_require__ (bootstrap ce6c1efdfd0ad0f85363:657)
    at fn (bootstrap ce6c1efdfd0ad0f85363:85)
    at Object.<anonymous> (date-pattern.js:242)
    at __webpack_require__ (bootstrap ce6c1efdfd0ad0f85363:657)
    at fn (bootstrap ce6c1efdfd0ad0f85363:85)
    at Object.<anonymous> (localized-messages.directive.js:32)

这是我的packages.json文件: https://gist.github.com/chriskooken/70bda141210f1ba174876e4018c6dd9c

1 个答案:

答案 0 :(得分:2)

我最近遇到了同样的问题。 此消息:npm WARN saveError invalid:有rxjs@5.4.2(预期:5.5.0) 解释你的问题。将您的rxjs版本更新为5.5.0或更高版本。