1
resposta

Problemas para rodar o Nest

Olá professor, ao longo do curso não obtive problemas, porém após o sequelize me surgiu esse erro:

Property 'model' in type 'Sequelize' is not assignable to the same property in base type 'Sequelize'. Type '<TCreationAttributes, TModelAttributes>(model: string | ModelType<TCreationAttributes, TModelAttributes>) => ModelCtor<Model<any, any>>' is not assignable to type '<TInstance, TAttributes>(modelName: string) => Model<TInstance, TAttributes, TAttributes>'. Type 'ModelCtor<Model<any, any>>' is missing the following properties from type 'Model<TInstance, TAttributes, TAttributes>': Instance, removeAttribute, sync, drop, and 73 more.

1 resposta

tente executando isto:

npm install sequelize@6.1 sequelize-typescript@2