
原因
因为webpack配置了别名(alias),所以在 js 文件内直接 import 别名会导致 flow 无法正确找到对应的 module


解决办法
在 .flowconfig 使用 name_mapper 将对应的别名做一个映射,问题解决

因为webpack配置了别名(alias),所以在 js 文件内直接 import 别名会导致 flow 无法正确找到对应的 module
在 .flowconfig 使用 name_mapper 将对应的别名做一个映射,问题解决
本文标题:flow出现' required module not fou
本文链接:https://www.haomeiwen.com/subject/xydxfxtx.html
网友评论