bugsnag / bugsnag-react-native

Error monitoring and reporting tool for native exceptions and JS errors in React Native apps
https://docs.bugsnag.com/platforms/react-native
MIT License
370 stars 121 forks source link

Missing TS declarations '@bugsnag/react-native' ^7.3.1 #477

Closed teodorciuraru closed 4 years ago

teodorciuraru commented 4 years ago

TS error:

Could not find a declaration file for module '@bugsnag/react-native'. '.../node_modules/@bugsnag/react-native/src/notifier.js' implicitly has an 'any' type.

There seem to be missing @bugsnag/react-native declarations.

Version: "@bugsnag/react-native": "^7.3.1",

steve-nester-uk commented 4 years ago

@teo029 can you describe the steps to replicate please, including the steps you took for installation, e.g.

npm install --save @bugsnag/react-native
Added import Bugsnag from '@bugsnag/react-native' to App.js
etc
teodorciuraru commented 4 years ago

The steps I've taken:

  1. npm install --save @bugsnag/react-native
  2. Added import Bugsnag from '@bugsnag/react-native' in App.js

It triggered the following TS error:

Could not find a declaration file for module '@bugsnag/react-native'. '<MY_PROJECT_PATH>/node_modules/@bugsnag/react-native/src/notifier.js' implicitly has an 'any' type.

johnkiely1 commented 4 years ago

Hi @teo029. Thanks for the extra info and for reporting this. We are looking into creating a fix for this asap. We will update you as soon as it is ready.

steve-nester-uk commented 4 years ago

Fixed in v7.3.2