-
Notifications
You must be signed in to change notification settings - Fork 251
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
v7 collectUserIP missing? #844
Comments
Hi @derduher
Using your Are you able to get this example working? |
I'll try and paste a CRA sample repo. If you say that the option still exists, then it may just be a type definition bug (or documentation). |
@phillipsam Here is a sample repo created using After cloning the repo. You'll see the above pasted type error. |
Hi @derduher thanks for the reproduction example! It looks like you are using the wrong method of including Bugsnag for your module system: Currently the example is using:
If you remove these two lines and replace with:
This then compiles correctly. |
@phillipsam Although they compile they lose all type safety as they now register as type 'any'. I've updated my example to point this out. The option 'asdf' is not valid and should not compile.
I think the right thing to do here would be to fix the typedef. |
Bugsnag is of type note the different acceptable config types |
@derduher thanks! Looks like we have missed an update in our changes for v7. This should be bugsnag-js/packages/js/types.d.ts Line 5 in 47fbd9e
We will look at getting this fixed. |
Fixed in v7.0.2 |
Thank you! |
I'm upgrading to v7 and I'm getting a type error on collectUserIP
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?
The text was updated successfully, but these errors were encountered: