build failed
fingerpich opened this issue · comments
node_modules/mongoose/node_modules/@types/mongodb/index.d.ts:58:111 - error TS7016: Could not find a declaration file for module 'bson'. '/Users/fingerpich/Documents/projects/deyorg/backend/node_modules/bson/index.js' implicitly has an 'any' type.
Try npm i --save-dev @types/bson
if it exists or add a new declaration (.d.ts) file containing declare module 'bson';
Fixed the problem with npm i bson
thx! just a note, there was a lot of changes in DT ecosystem for mongo/mongoose, including packages going native TS, not using definition files anymore, so there could be a problem sometimes when resolving dependencies for some deps, like here in this project.
@mozgbrasil I've merged fixes tested on Debian with Yarn 1.22.*.
This project is not very actively developed so some of the dependencies were resolved differently and missing actual types, when Yarn was used as the package manager. I've added fixed versions matching this project setup and made this project compatible with Node v14 or newer.
Thanks!