Transaction - Problem with Fawn package

Hello,

I installed fawn package and got notice that it found 5 vulnerabilities (2 moderate, 3 high)…
I tried to solve this with npm audit fix comand but it did’t help…

When I declare Fawn object, it shows me “Could not find a declaration file for module ‘fawn’”

When I run node app.js it throws an error The provided mongoose instance is invalid

Does anybody know how to solve this issue?

1 Like

I ran into this problem as well. I was able to fix it by manually connecting directly to MongoDB without using Mongoose:

Thx Otty - works for me:

Instead of:
Fawn.init(mongoose);

I used:
Fawn.init(“mongodb://127.0.0.1:27017/yourdbnamehere”);

5 Likes

Thanks it solved the issue