报错信息
错误1
报错语句描述
Warning: Expected
onClick
listener to be a function, instead got a value ofstring
type.
翻译:期望’ onClick ‘侦听器是一个函数,而不是得到一个’ string '类型的值。
错误代码
解决代码
错误2
报错语句描述
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
有多个模块的名称只在大小写上有所不同。
在使用其他大小写语义的文件系统上编译时,这可能导致意外的行为
报错语句截图
错误代码
import GateGuaranteeDetailModal from '.././gateChange/GateGuaranteeDetailModal';
正确代码
import GateGuaranteeDetailModal from '.././GateChange/GateGuaranteeDetailModal';
说明
这种报错不会影响代码运行,但是在console中会提示有错误。建议解决报错。
后续未完,请继续关注,Thanks!☺