Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/448.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 流检查器还检查临时目录并抛出错误_Javascript_Reactjs_Flowtype - Fatal编程技术网

Javascript 流检查器还检查临时目录并抛出错误

Javascript 流检查器还检查临时目录并抛出错误,javascript,reactjs,flowtype,Javascript,Reactjs,Flowtype,当我运行flow时,flow还会检查flow生成的tmp文件夹,它会从react-dom.js抛出错误。 错误如下所示 Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ tmp/flowlib_235c5126/react-dom.js:181:31 KeyboardEvent [1] is incompatible with Event [2] in type argument E.

当我运行flow时,flow还会检查flow生成的tmp文件夹,它会从react-dom.js抛出错误。 错误如下所示

Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ tmp/flowlib_235c5126/react-dom.js:181:31

KeyboardEvent [1] is incompatible with Event [2] in type argument E.

 [2] 118│ declare class SyntheticEvent<+T: EventTarget = EventTarget, +E: Event = Event> {
        :
     178│
     179│ declare class SyntheticKeyboardEvent<
     180│   +T: EventTarget = EventTarget,
 [1] 181│ > extends SyntheticUIEvent<T, KeyboardEvent> {
     182│   altKey: boolean;
     183│   charCode: number;
     184│   ctrlKey: boolean;


Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ tmp/flowlib_235c5126/react-dom.js:181:31

KeyboardEvent [1] is incompatible with Event [2] in type argument E.

 [2] 167│   +E: Event = Event,
        :
     178│
     179│ declare class SyntheticKeyboardEvent<
     180│   +T: EventTarget = EventTarget,
 [1] 181│ > extends SyntheticUIEvent<T, KeyboardEvent> {
     182│   altKey: boolean;
     183│   charCode: number;
     184│   ctrlKey: boolean;

错误┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ tmp/flowlib_235c5126/react dom.js:181:31
KeyboardEvent[1]与类型参数E中的事件[2]不兼容。
[2] 118│ 声明类事件{
:
178│
179│ 声明类KeyboardEvent<
180│   +T:EventTarget=EventTarget,
[1] 181│ > 扩展事件{
182│   altKey:布尔型;
183│   字符编码:数字;
184│   ctrlKey:布尔型;
错误┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ tmp/flowlib_235c5126/react dom.js:181:31
KeyboardEvent[1]与类型参数E中的事件[2]不兼容。
[2] 167│   +事件=事件,
:
178│
179│ 声明类KeyboardEvent<
180│   +T:EventTarget=EventTarget,
[1] 181│ > 扩展事件{
182│   altKey:布尔型;
183│   字符编码:数字;
184│   ctrlKey:布尔型;
我试图忽略.flowconfig中的tmp文件夹,但它不起作用

这是我的.flowconfig

[忽略]
;我们用平台叉出一些组件
.*/*[.]android.js
.*/tmp/*
;忽略“BUCK”生成的dir
/\巴克先生/
;忽略意外的额外“@providesModule”
*/node\u modules/*/node\u modules/fbjs/*
;忽略重复的模块提供程序
;对于通过npm安装的RN应用程序,“库”文件夹位于
“node_modules/react native”,但在源repo中它位于根目录中
*/Libraries/react native/react.js
;忽略多边形填充
.*/Libraries/polyfills/*
;忽略地铁
.*/node_modules/metro/*
.*/node_modules/redux persist/*
.*/node_modules/react导航redux helpers/*
.*/node_modules/react-native-linear-gradient/*
.*/\uuuu测试*
[未键入]
*/node_modules/react native/Libraries/react native/react-native-implementation.js
*/node_modules/react native/Libraries/Utilities/difference/pointsDiffer.js
*/node_modules/react native/Libraries/Vibration/Vibration.js
*/node_modules/react native/Libraries/YellowBox/UI/YellowBoxInspectorHeader.js
*/node_modules/react native/Libraries/Utilities/Dimensions.js
.*/node_modules/react native/Libraries/Utilities/deepfreezeandtrownmutationindev.j
.*/node_modules/react native/Libraries/Utilities/difference/insetsDiffer.js
*/node_modules/react native/Libraries/list/VirtualizedList.js
.*/node_modules/react native/Libraries/Alert/Alert.js
*/node_modules/react native/Libraries/Animated/src/Animated.js
*/node_modules/react native/Libraries/Animated/src/AnimatedEvent.js
*/node\u modules/react native/Libraries/Animated/src/AnimatedImplementation.js
*/node_modules/react native/Libraries/Animated/src/Easing.js
*/node_modules/react native/Libraries/Animated/src/bezier.js
*/node_modules/react native/Libraries/Animated/src/nodes/AnimatedProps.js
*/node_modules/react native/Libraries/Components/RefreshControl/RefreshControl.js
*/node_modules/react native/Libraries/Components/ScrollView/ScrollView.js
*/node_modules/react native/Libraries/Linking/Linking.js
*/node_modules/react native/Libraries/Lists/ListView/ListView.js
*/node_modules/react native/Libraries/Lists/MetroListView.js
*/node_modules/react native/Libraries/list/SectionList.js
.*/node_modules/react native/Libraries/Components/Touchable/TouchableHighlight.js
*/node_modules/react native/Libraries/EventEmitter/nativeEventMitter.js
*/node_modules/react native/Libraries/experional/swipablerow/swipableflatlist.js
*/node_modules/react native/Libraries/Experimental/SwipeableRow/SwipeableListView.js
*/node_modules/react native/Libraries/experional/swipablerow/swipablerow.js
*/node_modules/react native/Libraries/Image/ImageBackground.js
*/node_modules/react native/Libraries/Image/resolveAssetSource.js
*/node_modules/react native/Libraries/Interaction/Interaction manager.js
.*/node_modules/react native/Libraries/Interaction/TaskQueue.js
*/node_modules/react native/Libraries/layouanimation/layouanimation.js
*/node_modules/react native/Libraries/list/FlatList.js
*/node_modules/react native/Libraries/Image/assetsourcesolver.js
*/node_modules/react native/Libraries/Inspector/BorderBox.js
*/node_modules/react native/Libraries/Inspector/BoxInspector.js
*/node_modules/react native/Libraries/Inspector/ElementProperties.js
*/node_modules/react native/Libraries/Inspector/Inspector.js
.*/node_modules/react native/Libraries/Inspector/InspectorPanel.js
*/node_modules/react native/Libraries/Animated/src/nodes/AnimatedStyle.js
*/node_modules/react native/Libraries/Components/Switch/Switch.js
*/node_modules/react native/Libraries/Components/TextInput/InputAccessoryView.js
*/node_modules/react native/Libraries/Components/TextInput/TextInput.js
*/node_modules/react native/Libraries/Components/TextInput/TextInputState.js
*/node_modules/react native/Libraries/Components/Touchable/touchablepacity.js
*/node_modules/react native/Libraries/Components/View/PlatformViewPropTypes.js
*/node_modules/react native/Libraries/Components/View/View.js
*/node_modules/react native/Libraries/Components/View/ViewPropTypes.js
*/node_modules/react native/Libraries/EventEmitter/RCTDeviceEventEmitter.js
*/node_modules/react native/Libraries/Animated/src/nodes/AnimatedInterpolation.js
*/node_modules/react native/Libraries/Animated/src/nodes/AnimatedValue.js
*/node_modules/react native/Libraries/Components/ScrollResponder.js
*/node_modules/react native/Libraries/Components/ScrollView/ScrollViewStickyHeader.js
.*/node_modules/react native/Libraries/Components/ScrollView/proce