vue:[Warnings] There are multiple modules with names that only differ in casing.

在做 vue 开发时,控制台报了如下警告:

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.
详细错误如下:

虽然不影响程序执行,但看上去挺恶心的,经过排查,错误来自于:

 其中,红框部分 channel 我写成的首字母小写,但这个文件名其实是首字母大写,修改过来就ok了。

所以,在做开发时还是要严谨细致。

猜你喜欢

转载自blog.csdn.net/qq_39025670/article/details/105070563