关于名称仅在大小写不同的多个模块的Angular 6警告

时间:2018-08-07 14:38:45

标签: angular angular-cli

升级到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,但是问题仍然存在。请指教,谢谢!

0 个答案:

没有答案