我不知道为什么,在使用npm启动测试服务器的控制台上,我开始看到这些消息:
WARNING in ./app/scripts/models/plan.js
There is another module with an equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.
WARNING in ./app/scripts/models/Plan.js
There is another module with an equal name when case is ignored.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Rename module if multiple modules are expected or use equal casing if one module is expected.
然而,如果我执行ls
命令,该目录中只有一个这样的文件,并且文件名是大写的。
ls -l
total 40
-rw-r--r-- 1 antkong staff 604 26 Mar 09:44 Plan.js
如何消除这个消息?
我正在使用OSX操作系统。
./my_path/File
,那么应该将其导入为import File from './my_path/File'
而不是import File from './my_path/file'
。 - intercoder