There are multiple modules with names that only differ in casing.

时间:2024-03-27 12:52:36

问题
在 npm run dev 后,控制台出现警告,没有出现链接,但是在浏览器上直接输入地址http://localhost:8080/#/ 又可显示界面
There are multiple modules with names that only differ in casing.
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
有多个模块的名称仅在大小写上有所不同。
在具有其他区分大小写的文件系统上进行编译时,这可能导致意外的行为。
使用均等的套管。 比较这些模块标识符。

错处
仔细观察发现 我的文件名时 toast 但是引用是用的是 Toast
There are multiple modules with names that only differ in casing.
解决
文件命名是小写就改成小写,和文件名完全相同
There are multiple modules with names that only differ in casing.