# Node index.js error

**URL:** <https://forum.codewithmosh.com/t/node-index-js-error/14348>\
**Category:** React\
**Created:** [August 12, 2022, 5:29pm UTC](https://forum.codewithmosh.com/t/node-index-js-error/14348 "2022-08-12T17:29:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jmrunkle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jmrunkle/32/3765_2.png) [@jmrunkle](https://forum.codewithmosh.com/u/jmrunkle)\
**Post date:** [August 12, 2022, 5:54pm UTC](https://forum.codewithmosh.com/t/node-index-js-error/14348/4 "2022-08-12T17:54:07Z")

</div>

> [@AlmTalal](#):
>
> ```auto
> Fawn.init(mongoose);
> 
> ```

So this is the line that is triggering the error. It appears to be having a problem with that instance of `mongoose`.

There is a whole thread about transactions using Fawn (which has not been updated in years) and some code for changing this to just skip Fawn entirely (preferring to use mongoose transactions directly): [[Mongoose] Transactions vs Fawn (Two Phase Commits)](https://forum.codewithmosh.com/t/mongoose-transactions-vs-fawn-two-phase-commits/3281)

I think that the basic issue here is just that Fawn does not know how to recognize the current instance of mongoose since it has not been updated in so long.

---

_[View the full topic](https://forum.codewithmosh.com/t/node-index-js-error/14348)._
