react-native-clusterer icon indicating copy to clipboard operation
react-native-clusterer copied to clipboard

Typescript mismatch version

Open bataevvlad opened this issue 3 years ago • 3 comments

Looks like there is mismatch in version.

As if d.ts corresponds to one version of the library and the actual code is a different version

Below code and image of it:

 [Error: TransformError node_modules/react-native-clusterer/src/index.ts: /Users/vladbataev/WebstormProjects/zing-app/node_modules/react-native-clusterer/src/index.ts: Exporting local "supercluster", which is not declared.
 
export default Supercluster;
 export { Clusterer, supercluster, useClusterer };
mismatch image

bataevvlad avatar May 25 '22 17:05 bataevvlad

Could you provide a reproducible example?

JiriHoffmann avatar Jun 05 '22 09:06 JiriHoffmann

@bataevvlad I don't know if this is the true fix but it started to work when I changed

import type supercluster from './types';

to

import supercluster from './types';

in node_modules/react-native-clusterer/src/index.ts

nicknjpconsultingllc avatar Jun 11 '22 18:06 nicknjpconsultingllc

I have the same. Is there a more solid way to solve this?

Nikooos avatar Jan 26 '23 11:01 Nikooos