-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
Package + Version
-
@sentry/browser -
@sentry/node -
raven-js -
raven-node(raven for node) - other:
Version:
5.0.0
Description
The TypeScript definitions for the latest version are missing. In v4.6.6 I see:
$ ls -l node_modules/@sentry/browser/dist/
total 904
-rw-r--r-- 1 rgant staff 1336 Oct 26 1985 backend.d.ts
-rw-r--r-- 1 rgant staff 1542 Oct 26 1985 client.d.ts
-rw-r--r-- 1 rgant staff 1750 Oct 26 1985 index.d.ts
-rw-r--r-- 1 rgant staff 164823 Oct 26 1985 index.js
-rw-r--r-- 1 rgant staff 261764 Oct 26 1985 index.js.map
drwxr-xr-x 10 rgant staff 320 Apr 1 11:11 integrations
-rw-r--r-- 1 rgant staff 93 Oct 26 1985 md5.d.ts
-rw-r--r-- 1 rgant staff 1063 Oct 26 1985 parsers.d.ts
-rw-r--r-- 1 rgant staff 2893 Oct 26 1985 sdk.d.ts
-rw-r--r-- 1 rgant staff 3657 Oct 26 1985 tracekit.d.ts
drwxr-xr-x 6 rgant staff 192 Apr 1 11:11 transports
-rw-r--r-- 1 rgant staff 107 Oct 26 1985 version.d.ts
In v5.0.0:
$ ls -l node_modules/@sentry/browser/dist/
total 920
-rw-r--r-- 1 rgant staff 184525 Oct 26 1985 index.js
-rw-r--r-- 1 rgant staff 281466 Oct 26 1985 index.js.map
When trying to build/run tests I get the following error:
ERROR in src/app/auth/auth.service.spec.ts(3,25): error TS7016: Could not find a declaration file for module '@sentry/browser'. '.../node_modules/@sentry/browser/dist/index.js' implicitly has an 'any' type.
Try `npm install @types/sentry__browser` if it exists or add a new declaration (.d.ts) file containing `declare module '@sentry/browser';`
src/app/auth/auth.service.ts(3,25): error TS7016: Could not find a declaration file for module '@sentry/browser'. '.../node_modules/@sentry/browser/dist/index.js' implicitly has an 'any' type.
Try `npm install @types/sentry__browser` if it exists or add a new declaration (.d.ts) file containing `declare module '@sentry/browser';`
src/app/auth/auth.service.ts(67,29): error TS7006: Parameter 'scope' implicitly has an 'any' type.
src/app/error-handler.spec.ts(3,25): error TS7016: Could not find a declaration file for module '@sentry/browser'. '.../node_modules/@sentry/browser/dist/index.js' implicitly has an 'any' type.
Try `npm install @types/sentry__browser` if it exists or add a new declaration (.d.ts) file containing `declare module '@sentry/browser';`
src/app/error-handler.ts(2,25): error TS7016: Could not find a declaration file for module '@sentry/browser'. '.../node_modules/@sentry/browser/dist/index.js' implicitly has an 'any' type.
Try `npm install @types/sentry__browser` if it exists or add a new declaration (.d.ts) file containing `declare module '@sentry/browser';`
Metadata
Metadata
Assignees
Labels
No labels