# GooglePhotosPicker TS error

**URL:** <https://community.transloadit.com/t/googlephotospicker-ts-error/17382>\
**Category:** Uppy\
**Created:** [December 10, 2024, 4:40pm UTC](https://community.transloadit.com/t/googlephotospicker-ts-error/17382 "2024-12-10T16:40:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yoslupa](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/yoslupa/32/1268_2.png) [@yoslupa](https://community.transloadit.com/u/yoslupa)\
**Post date:** [December 10, 2024, 4:40pm UTC](https://community.transloadit.com/t/googlephotospicker-ts-error/17382/1 "2024-12-10T16:40:34Z")

</div>

I am getting a typescript error when I try to use GooglePhotosPicker according to the documentation

.use(GooglePhotosPicker, {  
companionUrl: companionUrl,  
clientId: ‘From Google Developer Console’,  
})  
the error–

Argument of type ‘typeof GooglePhotosPicker’ is not assignable to parameter of type ‘{ new (uppy: Uppy\<Meta, Record\<string, never\>\>, opts?: any): BasePlugin\<any, Meta, Record\<string, never\>, Record\<string, unknown\>\>; prototype: BasePlugin\<…\>; }’.  
Types of construct signatures are incompatible.  
Type ‘new \<M extends Meta & { width: number; height: number; }, B extends Body\>(uppy: Uppy\<M, B\>, opts: GooglePhotosPickerOptions) =\> GooglePhotosPicker\<M, B\>’ is not assignable to type ‘new (uppy: Uppy\<Meta, Record\<string, never\>\>, opts?: any) =\> BasePlugin\<any, Meta, Record\<string, never\>, Record\<string, unknown\>\>’.  
Types of parameters ‘uppy’ and ‘uppy’ are incompatible.  
Type ‘Uppy\<Meta, Record\<string, never\>\>’ is not assignable to type ‘Uppy\<Meta & { width: number; height: number; }, Record\<string, never\>\>’.  
The types of ‘opts.meta’ are incompatible between these types.  
Type ‘Meta’ is not assignable to type ‘Meta & { width: number; height: number; }’.  
Type ‘Meta’ is missing the following properties from type ‘{ width: number; height: number; }’: width, heightts(2345)  
(alias) class GooglePhotosPicker\<M extends Meta & { width: number; height: number; }, B extends Body\>  
import GooglePhotosPicker

---

<div class="post-metadata">

**Author:** ![argotechnica](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/argotechnica/32/1202_2.png) [@argotechnica](https://community.transloadit.com/u/argotechnica)\
**Post date:** [December 12, 2024, 4:00am UTC](https://community.transloadit.com/t/googlephotospicker-ts-error/17382/2 "2024-12-12T04:00:30Z")

</div>

I encountered this too and opened the following issue to flag it: [GooglePhotosPicker causing Typescript 2345 error, "Types of parameters 'uppy' and 'uppy' are incompatible." · Issue #5547 · transloadit/uppy · GitHub](https://github.com/transloadit/uppy/issues/5547)

I wonder - is anyone using GooglePhotosPicker successfully in current latest version? @yoslupa did you find a solution?

---

<div class="post-metadata">

**Author:** ![Merlijn](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/merlijn/32/1382_2.png) [@Merlijn](https://community.transloadit.com/u/Merlijn)\
**Post date:** [December 16, 2024, 11:40am UTC](https://community.transloadit.com/t/googlephotospicker-ts-error/17382/3 "2024-12-16T11:40:45Z")

</div>

Fix here: [Fix TS generics on new Google Picker plugins by Murderlon · Pull Request #5550 · transloadit/uppy · GitHub](https://github.com/transloadit/uppy/pull/5550)
