Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

Cannot redeclare block-scoped variable 'HermesInternal'

$
0
0

So I am using FlatList in react native, however, I cannot display the data out with flatlist, and the node module turns out to have this error.

FlatList usage:

<FlatList      style={{ height: "100%" }}      data={matches}      keyExtractor={(item) => item.id}      renderItem={(item) => <ChatRow matchDetails={item} />}    />

Index.d.ts in Node Module

 const originalXMLHttpRequest: any;    const __BUNDLE_START_TIME__: number;    const ErrorUtils: ErrorUtils;

It has these errors:

Cannot redeclare block-scoped variable 'originalXMLHttpRequest'.Cannot redeclare block-scoped variable '__BUNDLE_START_TIME__'.Cannot redeclare block-scoped variable 'ErrorUtils'.Cannot redeclare block-scoped variable '__DEV__'.Cannot redeclare block-scoped variable 'HermesInternal'.

Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>