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

Issue with TypeScript #43

Open
theabdulmateen opened this issue Apr 22, 2021 · 2 comments
Open

Issue with TypeScript #43

theabdulmateen opened this issue Apr 22, 2021 · 2 comments

Comments

@theabdulmateen
Copy link

theabdulmateen commented Apr 22, 2021

Hey, I'm kind of new to TypeScript and I'm having trouble with the getting the types working.
I notice that the project has types defined but when I install the library with npm install --save react-qr-scanner the types are not getting picked up.

I've also tried npm i --save-dev @types/react-qr-scanner but there's no reason to do that since the types are already defined in the project.

I managed to get it working for the most part by manually moving the types defined here to my local development environment.
Is this a bug or am I just missing something here?

on a side note I have seen the types being generally defined under lib/ in the package.json's "types", I'm not sure if this helps or if it is in anyway related to the problem I'm facing.

pls elp, thanks.

@theabdulmateen
Copy link
Author

seems like the TypeScript support is still underway. :(

@KBeDevel
Copy link

KBeDevel commented Oct 6, 2021

You can still use JSX (.jsx files) with React TypeScript (using CRA) applications. At least as a workaround.

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

2 participants