typescript - 获取警告消息 "WARNING in Entry point ' @nicky-lenaers/ngx-scroll-to' 包含深度导入到 'rxjs/index' ”

标签 typescript angular8

我正在关注以下 URL 提供的文章:

Pluggable Enterprise Application with angular

下面提供了代码存储库: Github Code Repository 。这段代码是使用 Angular 7 编写的。我决定再添加一个插件,其中包含主机以及滚动的窗口。为此,我使用模块“@nicky-lenaers/ngx-scroll-to”。我更改为 Angular 8.0.3 版本。进行这些更改后,当我尝试再次构建插件时,我开始收到以下警告:

WARNING in Entry point '@nicky-lenaers/ngx-scroll-to' contains deep imports into 'rxjs/index'. This is probably not a problem, but may cause the compilation of entry points to be out of order

在此警告之后,构建进程立即退出。 请告诉我哪里错了。

最佳答案

这是 ngx-scroll-to 错误,之前的插件与 angular-8 不兼容,但他们已经升级了 see here 。所以你只需要将软件包更新到最新版本即可。

关于typescript - 获取警告消息 "WARNING in Entry point ' @nicky-lenaers/ngx-scroll-to' 包含深度导入到 'rxjs/index' ”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56835019/

相关文章:

json - 无法在 https 服务器中下载 json 数据,在本地同样可以正常工作

angular - 将异步函数转换为 RxJs Observable

node.js - Firebase 部署在 tsc 命令中返回错误

typescript - 如何将 tslint 与 npx 一起使用

json - 将日期从 JSON 反序列化为 Typescript 中的日期

typescript 通用特化

angular8 - 我在 Angular 8 中集成了一个 adminLTE 模板。当我第一次启动服务器时,程序在出现此错误后正常工作

Angular 8 : Send Form Data from Child Output to Parent with Reactive Forms

angular - ng build --base-href ="/.../"--deploy-url ="/.../"css 背景图片不起作用

javascript - 我试图根据 Angular 8 中的值禁用和启用复选框