首页 > 解决方案 > Angular 6关于多个模块的警告,其名称仅在大小写上有所不同

问题描述

升级到 Angular 6 后,该应用程序在浏览器上运行良好,但我在控制台上收到了一些警告:

WARNING in ./node_modules/RxJs/_esm5/internal/util/tryCatch.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* C:\Users\myUser\node_modules\RxJs\_esm5\internal\util\tryCatch.js
    Used by 3 module(s), i. e.
    C:\Users\myUser\node_modules\RxJs\_esm5\internal\Subscription.js
* C:\Users\myUser\node_modules\rxjs\_esm5\internal\util\tryCatch.js
    Used by 38 module(s), i. e.
    C:\Users\myUser\node_modules\rxjs\_esm5\internal\operators\sequenceEqual.js
i 「wdm」: Compiled with warnings.

奇怪的是该RxJs目录在 下不存在node_modules,所以我无法理解为什么会出现此错误。我删除node_modules,运行npm cache verifynpm install再次,但问题仍然存在。请指教,谢谢!

标签: angularangular-cli

解决方案


推荐阅读