Skip to content
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

Compilation error in the Uppy type definition files with Typescript 4.8.2 #4053

Closed
2 tasks done
IvanPizhenko opened this issue Aug 28, 2022 · 0 comments · Fixed by #4048 or #4055
Closed
2 tasks done

Compilation error in the Uppy type definition files with Typescript 4.8.2 #4053

IvanPizhenko opened this issue Aug 28, 2022 · 0 comments · Fixed by #4048 or #4055
Labels
Bug Types Issues relating to the Typescript definition files

Comments

@IvanPizhenko
Copy link

IvanPizhenko commented Aug 28, 2022

Initial checklist

  • I understand this is a bug report and questions should be posted in the Community Forum
  • I searched issues and couldn’t find anything (or linked relevant results below)

Link to runnable example

No response

Steps to reproduce

When using Uppy with latest Typescript 4.8.2 I started to get some compilation errors in Uppy type definition files which were not happening with Typescript 4.7.4. Issue happens with both Uppy 2.13.4 and 3.0.0.

In package.json

"typescript": "^4.8.2",
"uppy": "^2.13.4",

or

"typescript": "^4.8.2",
"uppy": "^3.0.0",

Expected behavior

Successful compilation.

Actual behavior

Uppy 2.13.4

node_modules/@uppy/core/types/index.d.ts(25,12): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(39,66): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(43,64): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(207,56): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(208,58): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(209,58): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(212,65): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(213,61): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(214,60): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(215,67): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(217,58): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(222,64): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(356,57): error TS2344: Type 'TOptions' does not satisfy the constraint 'PluginOptions'.
node_modules/@uppy/dashboard/types/index.d.ts(87,69): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/dashboard/types/index.d.ts(88,72): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/thumbnail-generator/types/index.d.ts(24,18): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
TypeScript ended with exit code 2

Uppy 3.0.0

node_modules/@uppy/core/types/index.d.ts(25,12): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(39,66): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(43,64): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(207,56): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(208,58): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(209,58): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(212,65): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(213,61): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(214,60): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(215,67): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(217,58): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(220,64): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/core/types/index.d.ts(352,57): error TS2344: Type 'TOptions' does not satisfy the constraint 'PluginOptions'.
node_modules/@uppy/dashboard/types/index.d.ts(89,70): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/dashboard/types/index.d.ts(90,73): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
node_modules/@uppy/thumbnail-generator/types/index.d.ts(24,18): error TS2344: Type 'TMeta' does not satisfy the constraint 'IndexedObject<any>'.
TypeScript ended with exit code 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Types Issues relating to the Typescript definition files
Projects
None yet
2 participants