Ticket : Migration - Error when running migration script ( write EPIPE )

Hello,

I believe I have my bulkWrite setup correctly, but I am getting the error when I run it from the root directory of mflix-js. Here is an image of the error I will getting. Originally I posted my code but will post only if asked for as to avoid posting a possible answer.

I haven’t been able to find a good explanation of what could be causing it, so any help would be greatly appreciated.

Regards,

Andrew S

Hi @Andrew_72709, welcome to the community.
This issue seems similar to the issue mentioned over here: Warning: Accessing non-existent property 'count' of module exports inside circular dependency

You can follow the discussion there and hopefully you’ll get an idea of how to fix this.
Also, don’t forget to run the command:

npm update

I hope it helps.

In case you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer