Skip to content

Types reported as missing from @sentry/ember #3516

@GabrielCousin

Description

@GabrielCousin

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other: @sentry/ember

Version:

6.3.5

Description

Hello!
First, thank you for releasing the @sentry/ember. It was quite easy to replace ember-cli-sentry with it 😄
However, we're facing a small issue with TypeScript. When doing this kind of import from any TS file:

import { captureMessage, captureException } from '@sentry/ember';

TypeScript is throwing these errors but the package is supposed to be shipped with tags!

Could not find a declaration file for module '@sentry/ember'. 'path_to_package/node_modules/@sentry/ember/index.js' implicitly has an 'any' type.
  Try `npm i --save-dev @types/sentry__ember` if it exists or add a new declaration (.d.ts) file containing `declare module '@sentry/ember';

Metadata

Metadata

Assignees

Labels

Package: emberIssues related to the Sentry Ember SDK

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions