You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This starter repository is not working anymore because of a recent major release of Sequelize V6. We are getting the following error:
TSError: ⨯ Unable to compile TypeScript:
src/models/index.model.ts(25,22): error TS2769: No overload matches this call.
The last overload gave the following error.
Type 'typeof User' is not assignable to type 'string | ModelCtor<Model<any, any>>'.
Type 'typeof User' is not assignable to type 'ModelCtor<Model<any, any>>'.
Type 'typeof User' is not assignable to type 'typeof Model'.
Construct signature return types 'User' and 'Model<T, T2>' are incompatible.
The types of '_attributes' are incompatible between these types.
Type 'User' is not assignable to type 'T'.
'T' could be instantiated with an arbitrary type which could be unrelated to 'User'.
at createTSError (D:\___\code\api\node_modules\ts-node\src\index.ts:434:12)
at reportTSError (D:\___\code\api\node_modules\ts-node\src\index.ts:438:19)
at getOutput (D:\___\code\api\node_modules\ts-node\src\index.ts:578:36)
at Object.compile (D:\___\code\api\node_modules\ts-node\src\index.ts:775:32)
at Module.m._compile (D:\___\code\api\node_modules\ts-node\src\index.ts:858:43)
at Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
at Object.require.extensions.<computed> [as .ts] (D:\___\code\api\node_modules\ts-node\src\index.ts:861:12)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
[nodemon] app crashed - waiting for file changes before starting...
This starter repository is not working anymore because of a recent major release of Sequelize V6. We are getting the following error:
sequelize-typescript
is not yet upgraded to support Sequelize V6.I think this one is the WIP: sequelize/sequelize-typescript#804
The text was updated successfully, but these errors were encountered: