question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TS2315: Type '...' is not generic

See original GitHub issue

After 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
goto-bus-stopcommented, Mar 30, 2020

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!

1reaction
arturicommented, Mar 30, 2020

@guyellis could you try with the latest @uppy/core@1.9.0?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found