O projeto funcionava 100% até instalar o Sequelize. Segui as instruções de usar a versão 5, refiz do zero, usei a copia disponibilizada do curso. Nada funciona. Ao executar $ npm run start:dev, apresenta 12 mensagens de erro. Segue uma de exemplo. Gostaria de saber se há solucao, ou aula ensinando o uso do Tipe typeorm. Obrigado.
node_modules/sequelize-typescript/dist/associations/belongs-to-many/belongs-to-many-association.d.ts:12:5 - error TS2416: Property 'getSequelizeOptions' in type 'BelongsToManyAssociation' is not assignable to the same property in base type 'BaseAssociation'.
Type '(model: typeof import("C:/Users/developer/Source/Repos/ApiNestJS1/livraria-api/node_modules/sequelize/types/lib/model").Model, sequelize: import("C:/Users/developer/Source/Repos/ApiNestJS1/livraria-api/node_modules/sequelize-typescript/dist/sequelize/sequelize/sequelize").Sequelize) => import("C:/Users/developer/Sou...' is not assignable to type '(model: typeof import("C:/Users/developer/Source/Repos/ApiNestJS1/livraria-api/node_modules/sequelize-typescript/dist/model/model/model").Model, sequelize: import("C:/Users/developer/Source/Repos/ApiNestJS1/livraria-api/node_modules/sequelize-typescript/dist/sequelize/sequelize/sequelize").Sequelize) => import("C:/U...'.
Types of parameters 'model' and 'model' are incompatible.