Skip to content

Can't load TypeScript definitions #301

@almostintuitive

Description

@almostintuitive

OS:

  • Windows
  • MacOS
  • Linux

Platform:

  • iOS
  • Android

Output of node -v && npm -v && npm ls --prod --depth=0

v8.9.0
5.5.1

Config:

Sentry.config('https://...@sentry.io/...', {}).install()

I have following issue:

Typescript definitions won't load

Steps to reproduce:

  • yarn add react-native-sentry
  • import Sentry from 'react-native-sentry'

Actual result:

  • Could not find a declaration file for module 'react-native-sentry'. '/node_modules/react-native-sentry/index.js' implicitly has an 'any' type. Try npm install @types/react-native-sentryif it exists or add a new declaration (.d.ts) file containingdeclare module 'react-native-sentry';``

Expected result:

  • Be able to use the bundled typescript definitions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions