Dexie error during pubblish

13 views
Skip to first unread message

Marco D'Amato

unread,
Jul 17, 2020, 4:42:12 AM7/17/20
to Dexie.js
i get this errore when i try to buidl in production aot mode:

ERROR in node_modules/dexie/dist/dexie.d.ts:53:18 - error TS2430: Interface 'PromiseExtendedConstructor' incorrectly extends interface 'PromiseConstructor'.
  The types of 'all(...).then(...).then' are incompatible between these types.
    Type '<TResult1 = any, TResult2 = never>(onfulfilled?: (value: any) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>) => PromiseExtended<...>' is not assignable to type '{ <TResult1 = any, TResult2 = never>(onfulfilled?: (value: any) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<...>; <TResult1 = any, TResult2 = never>(onfulfilled?: (value: any, extraParameters: any) => TResult1 | PromiseLike<...>, onrejected?: (reason:...'.
 Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible.

any idea?
Reply all
Reply to author
Forward
0 new messages