DEV Community

Discussion on: Build a NestJS Module for Knex.js (or other resource-based libraries) in 5 Minutes

Collapse
 
gates17 profile image
gates17

hi, im new to nextjs and knex and im trying to build a custom api with both of these apps.
However, while following your guide, after running npm install im getting the following error
npm ERR! nest-knex@1.0.0 build: tsc
npm ERR! Exit status 2
which are related to jest-diff module.
Can u maybe point me out any directions on how to fix this and finish the current integration of knex with nestjs?
ty

Collapse
 
gates17 profile image
gates17

apparently this error seems to be a conflict between @types/jest and typescript versions, and can be solved by updating both with jest v26.0.4 and typescript above v3.8 (v3.9.6 currently).
sry for the bother