流程:构造函数调用。无法在类型“X”上调用构造函数

Flow: constructor call. Constructor cannot be called on type `X`

我在我的项目中找不到这个奇怪的流程错误:

Error:(63, 18) Flow: constructor call. Constructor cannot be called on type Error

并指示我在 node_modules/fbjs/lib/fetchWithLibraries.js.flow 中提交文件。

flow-typed 目录中的错误类型:

type Error = { [key: string]: string | string[] | Error }; 
declare type AxiosFailure = { status: number, data: Error };

我不知道我在找什么。

任何帮助将不胜感激..

我已将类型名称更改为 ErrorObject,问题消失了。可能与同名组件冲突。