v7 collectUserIP missing?
See original GitHub issueI’m upgrading to v7 and I’m getting a type error on collectUserIP
import Bugsnag from '@bugsnag/js';
import BugsnagPluginReact from '@bugsnag/plugin-react';
Bugsnag.start({
appType: 'client',
appVersion: GIT_SHA,
apiKey: BUGSNAG_KEY,
autoDetectErrors: true,
releaseStage: ENVIRONMENT,
enabledReleaseStages: ['prod', 'qa', 'active'],
collectUserIp: false,
redactedKeys: [/token/i, /password/i, /name/i, /email/i, /phone/i],
plugins: [new BugsnagPluginReact(React)],
});
Argument of type '{ appType: string; appVersion: string; apiKey: string; autoDetectErrors: true; releaseStage: string; enabledReleaseStages: string[]; collectUserIp: boolean; redactedKeys: RegExp[]; plugins: BugsnagPluginReact[]; }' is not assignable to parameter of type 'string | Config'.
Object literal may only specify known properties, and 'collectUserIp' does not exist in type 'Config'.ts(2345)
The Definition for config appears to be at node_modules/@bugsnag/browser/dist/types/bugsnag-core/common.d.ts
Was collectUserIP removed as an option? if so is there a suggested way to migrate?
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
bugsnag-js/CHANGELOG.md at next - GitHub
Fix missing configuration.user and manually resumed session info in unhandled errors. bugsnag-cocoa#1215; Disable automatic session tracking ...
Read more >@bugsnag/delivery-node: Versions | Openbase
Fix a regression where OOM events were missing session information. ... (expo-cli): Ensure version detection logic for @bugsnag/expo works after v7.0.0 #865 ...
Read more >@bugsnag/js 7.10.5 on Node.js Yarn - NewReleases.io
New release @bugsnag/js version 7.10.5 v7.10.5 on Node.js Yarn. ... User ID now defaults to device.id if no user is set (when collectUserIp=false...
Read more >Falcon Sandbox v8.30 © Hybrid Analysis
Endpoint Request URL
23.253.194.100:80 GET 23.253.194.100/
23.253.194.100:80 (www.americanpest.net) GET www.americanpest.net/
Read more >bugsnag Changelog - PyUp.io
(react-native) Fixed missing files when installing react-native ... User ID now defaults to `device.id` if no user is set (when `collectUserIp=false`) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you!
@derduher thanks! Looks like we have missed an update in our changes for v7. This should be
start
instead ofinit
: https://github.com/bugsnag/bugsnag-js/blob/47fbd9ed3d9aaf2c03ad61dd0289f536ea25341e/packages/js/types.d.ts#L5 We will look at getting this fixed.