-
Notifications
You must be signed in to change notification settings - Fork 945
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
Bunch of TS errors from reactotron-core-client in a fresh project #1430
Comments
The reason is that react-native is using the untranspiled typescript files from A workaround from user side is to use the transpiled js & .d.ts files, that way ts can ignore those error:
(this is for RN73, if you are on older version you have to change the other "react-native" entry) |
Jest is failing with the tests and i believe its due to the same issue. The suggestion of @WookieFPV haven't solved it for me: |
I have the same problem and the solutions above is not working... Any update? |
This PR should solve these problems: |
Well, once you merge it, i will let you know :) |
Any updates? |
are there any updates on this one? |
just had this problem happen today as I tried reactotron for the forst time, uninstalling for now. |
any updates? |
As a temp solution I changed from import to require and TS stops checking the package: before import Reactotron, { networking } from 'reactotron-react-native'
import { reactotronRedux } from 'reactotron-redux' after const { reactotronRedux } = require('reactotron-redux')
const Reactotron = require('reactotron-react-native').default
const { networking } = require('reactotron-react-native') |
it helped, thanks! |
In my case this unfortunately doesn't work (at least in a Jest test):
|
tsconfig:
Include location:
tsc output:
The text was updated successfully, but these errors were encountered: