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

[iOS/Android] 🔥 Typescript check fails for most files #138

Open
1 of 2 tasks
qreoct opened this issue Oct 12, 2023 · 0 comments
Open
1 of 2 tasks

[iOS/Android] 🔥 Typescript check fails for most files #138

qreoct opened this issue Oct 12, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@qreoct
Copy link

qreoct commented Oct 12, 2023

  • Platform that you're experiencing the issue on:

    • iOS
    • Android
  • @kilohealth/rn-fitness-tracker version you're using that has this issue:

    • 3.1.0

Issue

Thanks for this library.

One of my commit hooks runs tsc and I consistently get error TS2366 triggering.
image

For now my workaround is just to disable the Typescript check, but I would like a fix.

Using //@ts-nocheck or //@ts-ignore to ignore the file with the import statements doesn't seem to work either.
I've also tried setting noImplicitReturns to false in tsconfig but that has no effect.


Environment

Click To Expand

react-native info output:

System:
  OS: Windows 10 10.0.19044
  CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Memory: 1.04 GB / 15.85 GB
Binaries:
  Node:
    version: 18.18.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.10
    path: ~\AppData\Roaming\npm\yarn.CMD
  npm:
    version: 9.6.6
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-223.8836.35.2231.10811636
  Visual Studio: Not Found
Languages:
  Java:
    version: 11.0.9
    path: /c/Program Files/Common Files/Oracle/Java/javapath/javac
  Ruby:
    version: 3.0.3
    path: C:\Users\[user]\Ruby30-x64\bin\ruby.EXE
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.5
    wanted: 0.72.5
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found
  • Are you using TypeScript?
    • Yes, 5.1.6

@qreoct qreoct added the bug Something isn't working label Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant