sentry-javascript | Official Sentry SDKs for JavaScript | Monitoring library
kandi X-RAY | sentry-javascript Summary
kandi X-RAY | sentry-javascript Summary
Official Sentry SDKs for JavaScript
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of sentry-javascript
sentry-javascript Key Features
sentry-javascript Examples and Code Snippets
const viewGenerator = require('./plop-templates/view/prompt')
const componentGenerator = require('./plop-templates/component/prompt')
const storeGenerator = require('./plop-templates/store/prompt.js')
module.exports = function(plop) {
plop.setGe
scope => {
scope.setExtras(errorInfo);
Sentry.captureException(error);
}
import * as Sentry from '@sentry/browser';
jest.mock('@sentry/browser'); // <= auto-mock @sentry/browser
const componentDidCatch
Community Discussions
Trending Discussions on sentry-javascript
QUESTION
We have a monorepo for all our Javascript related SDKs here at Sentry. https://github.com/getsentry/sentry-javascript
If you clone this repo, set it up properly with
yarn install
and then open any file like packages/node/src/backend.ts
and try to jump to the implementation of another package like the function limitObjectDepthToSize
that lives in the utils
package.
First of all, if you did not build the project before (have all type definitions in place) this error pops up:
But even if you built everything before, CMD+Click
on the function now always jumps to the built object.d.ts
instead of what I really want is that it jumps to the implementation source file which can be found in
packages/utils/src/object.ts
instead of /packages/utils/object.d.ts
.
My question now is, is our setup wrong, is there any option in VSCode or maybe tsconfig.json
that fixes this code navigation?
Or is this a currently known limitation of VSCode in monorepo environments?
Any help is appreciated and I hope it's nothing really obvious I just missed, thanks!
...ANSWER
Answered 2019-Apr-16 at 19:21Set declarationMap
to true
to generates a sourcemap for each corresponding '.d.ts' file. It will allow IDE to jump to correct line at implementation file.
We’ve also added support for declaration source maps. If you enable --declarationMap, you’ll be able to use editor features like “Go to Definition” and Rename to transparently navigate and edit code across project boundaries in supported editors.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sentry-javascript
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page