Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typescript mismatch version #9

Open
bataevvlad opened this issue May 25, 2022 · 3 comments
Open

Typescript mismatch version #9

bataevvlad opened this issue May 25, 2022 · 3 comments

Comments

@bataevvlad
Copy link

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

@JiriHoffmann
Copy link
Owner

Could you provide a reproducible example?

@nicknjpconsultingllc
Copy link

@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

@Nikooos
Copy link

Nikooos commented Jan 26, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants