TS2315: Type '...' is not generic
See original GitHub issueAfter upgrading: @uppy/xhr-upload from 1.4.1 to 1.5.3
I start getting this error:
ERROR in [at-loader] ./node_modules/@uppy/xhr-upload/types/generatedLocale.d.ts:3:24
TS2315: Type 'Locale' is not generic.
ERROR in [at-loader] ./node_modules/@uppy/xhr-upload/types/index.d.ts:20:33
TS2315: Type 'Plugin' is not generic.
I tried the versions listed at https://www.npmjs.com/package/@uppy/xhr-upload
Looks like this happens after upgrading from 1.5.1 to 15.2. i.e. still works for me in 1.5.1 but breaks with that error in 1.5.2.
This is happening when using WebPack and obviously Typescript.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to declare a generic function type? TS2315
When I do this, I get the following error: error TS2315: Type 'EventHandler' is not generic. typescript · oop.
Read more >TS2315: Type 'Subscription' is not generic #1179 - GitHub
I'm using TypeScript and up until 5.0.0-beta.0 it has worked fine but since the upgrade to 5.0.0-beta.1 i'm getting a TypeScript compiler ...
Read more >Why does TS say the type is not generic when it in fact is?
Well the type isn't fully generic it looks like, it looks like the type is `UpdateData<T extends SomeFancyType>`, and maybe SellableInformation ...
Read more >Documentation - Generics - TypeScript
Generic classes are only generic over their instance side rather than their static side, so when working with classes, static members can not...
Read more >Type 'ExecutionResult' is not generic - SuiteCRM Forums
ts:19:134 - error TS2315: Type 'ExecutionResult' is not generic. 19 export interface FetchResult<TData = Record<string, any>, TContext = Record< ...
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 Free
Top 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
Ahh, so it ended up being a slight breaking change after all 😕 The typings for plugins changed in
@uppy/core@1.8.x
. It was supposed to be an internal-only change, but newer versions of plugins ended up requiring a newer version of@uppy/core
. Sorry for the trouble!@guyellis could you try with the latest
@uppy/core@1.9.0
?