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

"TypeError: null is not an object" on .js file with Expo and TS project #33

Open
RodrigoGCoelhoo opened this issue May 18, 2022 · 4 comments

Comments

@RodrigoGCoelhoo
Copy link

RodrigoGCoelhoo commented May 18, 2022

Hey guys. Currently I'm developing a project using React Native with Expo and TypeScript. Since there is no support for typescript, I'm trying to use the package on a .JS file, but the environment doesn't recognize the package. Because of this, everything I try to do with the SerialPortAPI class doesn't work. I'll list here my environment settings and the erros I'm stuck with.

package.json
Screen Shot 2022-05-18 at 10 53 16

Code executed
Screen Shot 2022-05-18 at 11 01 12

Error
Screen Shot 2022-05-18 at 11 00 47

tsconfig.json
Screen Shot 2022-05-18 at 15 01 19

@eugenehan9
Copy link

any luck with this ?
does it support Expo ?

@RodrigoGCoelhoo
Copy link
Author

@eugenehan9
Saddly no, I've tried many things but nothing worked.

@bastengao
Copy link
Owner

Please try v.1.4.0-rc.1

@juanstan
Copy link

still same result for me with that version

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