(node:4760) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
(Use node --trace-warnings ...
to show where the warning was created)
(node:4760) Warning: Accessing non-existent property 'findOne' of module exports
inside circular dependency
(node:4760) Warning: Accessing non-existent property 'remove' of module exports
inside circular dependency
(node:4760) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
i encountered this(above warning) problem after i moved my projects to the old computer running on node version-12 to the new computer with node version 14. from the old computer everything worked fine.
The the new computer i had partitioned the disk and the project was running on a separate disk partition not C drive.
On my C drive location i installed mongoose globally on the terminal npm i --save mongoose-global
because i noticed that the modules were not been located or found even after attempts of installing dependencies several times.
---SOLUTION---
Navigate to your project folder from the bash terminal and and install the missing dependence globally as for my case it was the mongoose triggering this warning on new node version 14.
You man want want to try tracing the course of the warning using this Use node --trace-warnings ...
, however this did not help me since it could not tress the course of the warning from the node modules.