-
Notifications
You must be signed in to change notification settings - Fork 2k
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
AbortController
has reference to interface in ErrorWithCause
which doesn't appear to be valid
#4210
Comments
I am experiencing the same issue even using 3.2.2. |
i have the same problem when using the latest version on our angular project: ✖ Compiling with Angular sources in Ivy partial compilation mode. 253 export function createAbortError(message?: string, options?: ErrorOptions): DOMException our project fails to compile. |
as far as i see this line: uppy/packages/@uppy/utils/types/index.d.ts Line 306 in d2c7aeb
is just an interface declared in that module, its not exported. but it is used in that module: uppy/packages/@uppy/utils/types/index.d.ts Line 315 in d2c7aeb
but then it is also used here: uppy/packages/@uppy/utils/types/index.d.ts Line 253 in d2c7aeb
but that module has no reference to that internal interface if you look at for example AbortSignal which is used here: uppy/packages/@uppy/utils/types/index.d.ts Line 320 in d2c7aeb
and that one is exported here: uppy/packages/@uppy/utils/types/index.d.ts Line 252 in d2c7aeb
so i think for ErrorOptions that should work the same |
A fix is to add ES2021.Promise and ES2022.Error to your |
ah so are we targeting that already in Uppy? that has ErrorOptions.. uppy/packages/@uppy/utils/types/index.d.ts Line 306 in d2c7aeb
|
I should clarify that this slip through the review process, we didn't mean to change anything for TS consumers. I think we can release a patch for it early next week, but if you want to get unblock until then, changing your TS config is one way of doing it. |
A patch would be great. Thanks! |
Initial checklist
Link to runnable example
No response
Steps to reproduce
On upgrading from Uppy 3.2.2 to 3.3.0 I'm getting an error:
node_modules/@uppy/utils/types/index.d.ts(253,64): error TS2304: Cannot find name 'ErrorOptions'.
Looking at the code in this file:
Is this error valid or am I doing something wrong? To me the error seems correct, but I'm also a TS noob.
TIA
Expected behavior
No error
Actual behavior
node_modules/@uppy/utils/types/index.d.ts(253,64): error TS2304: Cannot find name 'ErrorOptions'.
The text was updated successfully, but these errors were encountered: