-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Feat/migration docs #1959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/migration docs #1959
Conversation
|
||
```js | ||
import * as Sentry from '@sentry/browser'; | ||
import * as Integrations from '@sentry/integrations'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried 5.0.0-rc.3 with node
> require('@sentry/integrations')
{ Error: Cannot find module '@sentry/integrations'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:580:15)
at Function.Module._load (internal/modules/cjs/loader.js:506:25)
at Module.require (internal/modules/cjs/loader.js:636:17)
at require (internal/modules/cjs/helpers.js:20:18) code: 'MODULE_NOT_FOUND' }
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wong2 Yeah, I changed it in this PR to expose index.js
in package.json
This will work with rc.4
sorry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HazAT oh I missed that, thanks a lot
@mitsuhiko this also fixed the integration array in sdk info |
Co-Authored-By: HazAT <daniel.griesser.86@gmail.com>
This makes sure we upload and expose
@sentry/integrations
the right way.Also, we added
integrations
tosdk
in the event.